Jisable JNS Lookup: Remove The VLAN Database Information File
Jisable JNS Lookup: Remove The VLAN Database Information File
Switch#delete Switch#erase
flash:vlan.dat
startup-config
S1
0 cisco 0 15 cisco
secret class
255.255.255.0
Assign ports to the switch VLAN. S1(config)#interface fa0/1 S1(config-if)#switchport access vlan 99 Set the switch default gateway. S1(config)#ip default-gateway 172.17.99.1
Configure the port speed and duplex settings for a Fast Ethernet interface.
S1#configure terminal S1(config)#interface fastethernet S1(config-if)#speed 100 S1(config-if)#duplex full
0/18
Management&Native Faculty/Staff
Assign switch ports to VLANs S2(config)#interface fastEthernet0/6 S2(config-if)#switchport mode access S2(config-if)#switchport access vlan 30 S2(config-if)#interface fastEthernet0/11 S2(config-if)#switchport mode access S2(config-if)#switchport access vlan 10
Use the show vlan id vlan-number command on S2 to see which ports are assigned to VLAN 10.
Assign the management VLAN. S1(config)#interface vlan 99 S1(config-if)#ip address 172.17.99.11 255.255.255.0 S1(config-if)#no shutdown
S2(config)#interface vlan 99 S2(config-if)#ip address 172.17.99.12 S2(config-if)#no shutdown
255.255.255.0
Configure trunking and the native VLAN for the trunking ports
S1(config)#interface fa0/1 S1(config-if)#switchport mode trunk S1(config-if)#switchport trunk native S1(config-if)#interface fa0/2 S1(config-if)#switchport mode trunk S1(config-if)#switchport trunk native S1(config-if)#end
vlan 99 vlan 99
Verify that the trunks have been configured with the show interface trunk command.S1#show interface trunk
Configure subinterfaces
The commands are as follows:
R1(config)#interface R1(config-if)#no
R1(config-if)#interface
R1(config-if)#interface
R1(config-if)#interface
fastethernet 0/1.20 dot1q 20 R1(config-subif)#ip address 172.17.20.1 255.255.255.0 fastethernet 0/1.30 dot1q 30 R1(config-subif)#ip address 172.17.30.1 255.255.255.0
R1(config-subif)#encapsulation R1(config-if)#interface R1(config-subif)#encapsulation
R1(config-if)#interface