You are on page 1of 3

R1>en

R1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#int g0/0.10
R1(config-subif)#encap
R1(config-subif)#encapsulation dot
R1(config-subif)#encapsulation dot1Q 10
R1(config-subif)#ip address 172.31.10.1 255.255.255.0
R1(config-subif)#int g0/0.20
R1(config-subif)#encapsulation dot1Q 20
R1(config-subif)#ip address 172.31.20.1 255.255.255.0
R1(config-subif)#int g0/0.30
R1(config-subif)#encapsulation dot1Q 30
R1(config-subif)#ip address 172.31.30.1 255.255.255.0
R1(config-subif)#int g0/0.88
R1(config-subif)#encapsulation dot1Q 88
R1(config-subif)#ip address 172.31.88.1 255.255.255.0
R1(config-subif)#int g0/0.99
R1(config-subif)#encapsulation dot1Q 99 native
R1(config-subif)#ip address 172.31.99.1 255.255.255.0
R1(config-subif)#exit
R1(config)#int g0/0
R1(config-if)#no sh

S1>en
S1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
S1(config)#ex
S1#
%SYS-5-CONFIG_I: Configured from console by console
S1#sh run
Building configuration...
!
!
!
end
S1#sh vlan brief
S1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
S1(config)#int g0/1
S1(config-if)#sw
S1(config-if)#switchport mode trunk

S1(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/1, changed state to
down

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/1, changed state to


up

S1(config-if)#switchport trunk native vlan 99


S1(config-if)#end
S1#
%SYS-5-CONFIG_I: Configured from console by console
S1#
HQ>en
HQ#conf t
Enter configuration commands, one per line. End with CNTL/Z.
HQ(config)#ip route 172.31.10.0 255.255.255.0 s0/0/0
%Default route without gateway, if not a point-to-point interface, may impact performance
HQ(config)#ip route 172.31.20.0 255.255.255.0 s0/0/0
%Default route without gateway, if not a point-to-point interface, may impact performance
HQ(config)#ip route 172.31.30.0 255.255.255.0 s0/0/0
%Default route without gateway, if not a point-to-point interface, may impact performance
HQ(config)#ip route 172.31.88.0 255.255.255.0 s0/0/0
%Default route without gateway, if not a point-to-point interface, may impact performance
HQ(config)#ip route 209.165.200.30 255.255.255.224 s0/1/0
%Default route without gateway, if not a point-to-point interface, may impact performance
%Inconsistent address and mask
HQ(config)#ip route 209.165.200.0 255.255.255.224 s0/1/0
%Default route without gateway, if not a point-to-point interface, may impact performance
HQ(config)#ip route 209.165.200.0 255.255.255.224 s0/1/1 10
HQ(config)#
R1>en
R1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#ip route 0.0.0.0 0.0.0.0 s0/0/0
%Default route without gateway, if not a point-to-point interface, may impact performance
R1(config)#

You might also like