VLANs (Part 3)

id is 20 
because the packet is from vlan 20

delete the previous config

router 1

Delete the last config in router 1

en
conf t
do show ip int brief
no int g0/0.10
no int g0/0.20
no int g0/0.30

do show ip int brief
int g0/0
ip add 10.0.0.194 255.255.255.252
no shutdown
do show ip int brief

back to default the interface 2

default int g1/0/2

see if the result is no

do show ip int brief

Now we have to set the switch from layer 2 to layer 3

int g1/0/2
no switchport
ip add 10.0.0.193 255.255.255.252
do show ip route

# This will enable routing in switch
ip routing

# This will add default route in switch
ip route 0.0.0.0 0.0.0.0 10.0.0.194

do show ip route
interface vlan 10
ip add 10.0.0.62 255.255.255.192

int vlan 20
ip add 10.0.0.127 255.255.255.192

int vlan 30
ip add 10.0.0.190 255.255.255.192
do show ip int brief

Last updated