Command of Cisco Network Admin L4
Command of Cisco Network Admin L4
At HQ-SW-L3:
Switch>enable
Switch#configure terminal
Switch(config)#hostname HQ-SW-L3
HQ-SW-L3(config)#vlan 88
HQ-SW-L3(config-vlan)#name Native
HQ-SW-L3(config-vlan)#exit
HQ-SW-L3(config)#interface vlan 88
HQ-SW-L3(config-if)#ip address 192.168.88.1 255.255.255.0
HQ-SW-L3(config-if)#exit
HQ-SW-L3(config)#vlan 90
HQ-SW-L3(config-vlan)#name Server
HQ-SW-L3(config-vlan)#exit
HQ-SW-L3(config)#interface vlan 90
HQ-SW-L3(config-if)#ip address 192.168.90.1 255.255.255.0
HQ-SW-L3(config-if)#exit
HQ-SW-L3(config)#vlan 101
HQ-SW-L3(config-vlan)#name Sale
HQ-SW-L3(config-vlan)#exit
HQ-SW-L3(config)#interface vlan 101
HQ-SW-L3(config-if)#ip address 192.168.101.1 255.255.255.0
HQ-SW-L3(config-if)#exit
HQ-SW-L3(config)#vlan 102
HQ-SW-L3(config-vlan)#name Marketing
HQ-SW-L3(config-vlan)#exit
HQ-SW-L3(config)#interface vlan 102
HQ-SW-L3(config-if)#ip address 192.168.102.1 255.255.255.0
HQ-SW-L3(config-if)#exit
HQ-SW-L3(config)#vlan 103
HQ-SW-L3(config-vlan)#name IT
HQ-SW-L3(config-vlan)#exit
HQ-SW-L3(config)#interface vlan 103
HQ-SW-L3(config-if)#ip address 192.168.103.1 255.255.255.0
HQ-SW-L3(config-if)#exit
HQ-SW-L3(config)#vlan 104
HQ-SW-L3(config-vlan)#name Logistic
HQ-SW-L3(config-vlan)#exit
HQ-SW-L3(config)#interface vlan 104
HQ-SW-L3(config-if)#ip address 192.168.104.1 255.255.255.0
HQ-SW-L3(config-if)#exit
HQ-SW-L3(config)#vlan 105
HQ-SW-L3(config-vlan)#name Planning
HQ-SW-L3(config-vlan)#exit
HQ-SW-L3(config)#interface vlan 105
HQ-SW-L3(config-if)#ip address 192.168.105.1 255.255.255.0
HQ-SW-L3(config-if)#exit
HQ-SW-L3(config)#interface range gigabitEthnet 1/0/1-2
HQ-SW-L3(config-if-range)#channel-group 1 mode active
HQ-SW-L3(config-if)#exit
HQ-SW-L3(config)#interface port-channel 1
HQ-SW-L3(config-if)#swichport trunk encapsulation dot1q
HQ-SW-L3(config-if)#swichport mode trunk
HQ-SW-L3(config-if)#switchport trunk native vlan 88
HQ-SW-L3(config-if)#exit
HQ-SW-L3(config)#
HQ-SW-L3(config)#interface range gigabitEthnet 1/0/3-4
HQ-SW-L3(config-if-range)#channel-group 2 mode active
HQ-SW-L3(config-if)#exit
HQ-SW-L3(config)#interface port-channel 2
HQ-SW-L3(config-if)#swichport trunk encapsulation dot1q
HQ-SW-L3(config-if)#swichport mode trunk
HQ-SW-L3(config-if)#switchport trunk native vlan 88
HQ-SW-L3(config-if)#exit
HQ-SW-L3(config)#ip routing
HQ-SW-L3(config)#ip dhcp snooping
HQ-SW-L3(config)#ip chcp snooping vlan 90
HQ-SW-L3(config)#interface gigabitEthernet 1/0/5
HQ-SW-L3(config-if)#switchport access vlan 90
HQ-SW-L3(config-if)#ip dhcp snooping trust
HQ-SW-L3(config-if)#exit
HQ-SW-L3(config)#interface gigabitEthernet 1/0/6
HQ-SW-L3(config-if)#no switchport
HQ-SW-L3(config-if)#ip address 10.1.2.1 255.255.255.252
HQ-SW-L3(config-if)#no shutdown
HQ-SW-L3(config-if)#exit
HQ-SW-L3(config)#
HQ-SW-L3(config)#interface gigabitEthernet 1/0/7
HQ-SW-L3(config-if)#no switchport
HQ-SW-L3(config-if)#ip address 10.1.2.5 255.255.255.252
HQ-SW-L3(config-if)#no shutdown
At Router HQ-R1:
Router>enable
Router#configure terminal
Router(config)#hostname HQ-R1
HQ-R1(config)#interface gigabitEthernet 0/0/0
HQ-R1(config-if)#ip address 10.1.2.2 255.255.255.252
HQ-R1(config-if)#no shutdown
HQ-R1(config-if)#exit
HQ-R1(config)#interface gigabitEthernet 0/0/1
HQ-R1(config-if)#ip address 10.1.1.1 255.255.255.252
HQ-R1(config-if)#no shutdown
HQ-R1(config-if)#exit
At Router HQ-R2:
Router>enable
Router#configure terminal
Router(config)#hostname HQ-R2
HQ-R2(config)#interface gigabitEthernet 0/0/0
HQ-R2(config-if)#ip address 10.1.2.5 255.255.255.252
HQ-R2(config-if)#no shutdown
HQ-R2(config-if)#exit
HQ-R2(config)#interface gigabitEthernet 0/0/1
HQ-R2(config-if)#ip address 10.1.1.9 255.255.255.252
HQ-R2(config-if)#no shutdown
HQ-R2(config-if)#exit