Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Okay, here is what I did on one switch:
- Switch>enable
- Switch#conf te
- Enter configuration commands, one per line. End with CNTL/Z.
- Switch(config)#vlan 10
- Switch(config-vlan)#name a
- Switch(config-vlan)#vlan 20
- Switch(config-vlan)#name b
- Switch(config-vlan)#vlan 30
- Switch(config-vlan)#name c
- Switch(config-vlan)#vlan 50
- Switch(config-vlan)#name management
- Switch(config-vlan)#int fa0/1-5
- ^
- % Invalid input detected at '^' marker.
- Switch(config-vlan)#int range fa0/1-5
- Switch(config-if-range)#swit mode trunk
- %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to down
- %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up
- Switch(config-if-range)#swit trunk nati vlan 50
- Switch(config-if-range)#no shut
- Switch(config-if-range)#int fa0/6
- Switch(config-if)#swit acc vlan 10
- Switch(config-if)#no shut
- Switch(config-if)#
- %CDP-4-NATIVE_VLAN_MISMATCH: Native VLAN mismatch discovered on FastEthernet0/1 (50), with Switch FastEthernet0/1 (1).int fa0/7
- Switch(config-if)#swit acc vlan 20
- Switch(config-if)#int fa0/8
- Switch(config-if)#swit acces vlan 30
- Switch(config-if)#int vlan 50
- Switch(config-if)#
- %LINK-5-CHANGED: Interface Vlan50, changed state to up
- %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan50, changed state to up
- Switch(config-if)#ip add 192.168.1.1 255.255.255.0
- Switch(config-if)#no shut
- Switch(config-if)#end
- Switch#
- %SYS-5-CONFIG_I: Configured from console by console
- Switch#ping 192.168.1.2
- Type escape sequence to abort.
- Sending 5, 100-byte ICMP Echos to 192.168.1.2, timeout is 2 seconds:
- !!!!!
- Success rate is 100 percent (5/5), round-trip min/avg/max = 2/6/19 ms
- Switch#
- I did the same on the other switch, with the exception of the last octet in vlan 50's ip address being slightly different, i.e. 2 instead of 1
- Now, if you add a PC on fa0/6 of both switches and give them an IP address of 192.168.10.1 and 192.168.10.2, SM 255.255.255.0, and no GW, you will have connection between those PC's. This will work the same for all the other VLAN's and switch ports.
- NOTE: these are just sample IP-addresses. You can choose whichever ones you like.
- Well, I hope this helps you! If it is still unclear, I'll just have to show you personally when we get a chance again to do so :D
- Have a good day, sir!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement