In This section we are going to split router's single interface to work like two separate interface in order to connect different network segment with single switch.
for this scenario,
- we are taking two network segment which is 10.0.0.0 and 11.0.1.0
- connecting them with with single port of router's i.e fa 0/0 (splitted into fa 0/0.2 and fa 0/0.3)
- cable's which is connected with router's interface , the otherside connected with switch would be configured as trunk link.
- both the vlans vlan-2 and vlan-3 will be configured as would be configured with respective network ip address i.e 10.0.0.1 and 11.0.1.1
Router-Rcy(config)#in fa 0/0
Router-Rcy(config-if)#no sh
Router-Rcy(config)#in fa 0/0.1
Router-Rcy(sconfig-subif)# encap dot1Q 2 ………………………………………2 is the vlan no.
Router-Rcy(config-subif)#ip add 10.0.0.1 255.0.0.0.......Network address matched to vlan 2
Router-Rcy(config-subif)#no sh
Router-Rcy(config-subif)#in fa 0/0.2 dot1Q 3………………………………………3 is the vlan no.
Router-Rcy(config-subif)#ip add 11.0.1.1 255.0.0.0.............Network address matched to vlan 3
No comments:
Post a Comment