Download as ppt, pdf, or txt
Download as ppt, pdf, or txt
You are on page 1of 4

VLAN Configure Example

• Topology
– PC ---------- SWITCH ------------- ROUTER
• Configuration on RouterB
– Connect PC to Router via console port (from Router to COM/USB port
on PC)
– Use Putty (or another utility like that) to telnet to Router (set baud-rate to
9600)
– Unset ip address to interface 0/0
• #enable
• #configure terminal
• #hostname RouteB
• #interface fastethernet 0/0
• #no ip address
• #exit
– Set ip address to sub-interface of F0/0
• #interface fastethernet 0/0.10
• #ip address 192.168.10.6 255.255.255.0
VLAN Configure Example
(cont.)
– Assign VLAN and encapsulation protocol (trunking protocol)
• #encapsulation dot1q 10
– Assign the CNR server to sub-interface
• #ip helper-address 192.168.10.2
– Enable and exit sub-interface config mode
• #no shutdown
• #exit
– Repeat the same steps with other sub-interfaces f0/0.11, f0/0.20,
f0/0.21 (with IP 192.168.11.6, 192.168.20.6, and 192.168.21.6
respectively)
– Make sure sub-interface are well configured
• #show interfaces
• #show cdp neighbors  must see the connection to SwitchA
VLAN Configure Example
(cont.)
• Configuration on SwitchA
– see which port connected to RouterB (.i.e. 43)
• #show cdp neighbors
– Create vlan(s)
• #enable
• #configure terminal
• #hostname SwitchA
• #vlan xx
• #name VLANxx
• #exit
Where xx=10, 11, 20 & 21
– Set trunk mode to interface 0/43
• #switchport trunk encapsulation dot1q
• #switchport mode trunk
VLAN Configure Example
(cont.)
• Enable telnet on RouterB
– #configure terminal
– #enable password wistron
– #line vty 0 4
– #password cisco
– #login
– #exit
• Verify the configuration
– From PC, do Ping SwitchA
– From PC, do Ping RouterB
– From PC, do Telnet RouterB (telnet 192.168.10.6)

You might also like