PDF version: Here.
! Create VLAN 12, 13
SW1(config-vlan)#vlan 12 SW1(config-vlan)#name VLAN12 SW1(config-vlan)#vlan 13 SW1(config-vlan)#name VLAN13 ! Configure trunk for port to R1 SW1(config-if)# switchport trunk encapsulation dot1q SW1(config-if)#switchport mode trunk
! Assign int to VLAN 12, mode access
SW1(config)#int e0/1 SW1(config-if)#switchport mode access SW1(config-if)#switchport access vlan 12 SW1(config-if)#no shut
! Assign int to VLAN 13, mode access
SW1(config-if)#int e0/2 SW1(config-if)#switchport access vlan 13 SW1(config-if)#switchport mode access
SW1#sh vlan
VLAN Name Status Ports
1 default active Et0/3, Et1/0, Et1/1, Et1/2, Et1/3 12 VLAN12 active Et0/1 13 VLAN13 active Et0/2 1002 fddi-default act/unsup 1003 token-ring-default act/unsup 1004 fddinet-default act/unsup 1005 trnet-default act/unsup
VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
1 enet 100001 1500 - - - - - 0 0
12 enet 100012 1500 - - - - - 0 0
13 enet 100013 1500 - - - - - 0 0
1002 fddi 101002 1500 - - - - - 0 0
1003 tr 101003 1500 - - - - - 0 0
1004 fdnet 101004 1500 - - - ieee - 0 0
1005 trnet 101005 1500 - - - ibm - 0 0
Primary Secondary Type Ports
SW1#sh int trunk
Port Mode Encapsulation Status Native vlan Et0/0 on 802.1q trunking 1
Port Vlans allowed on trunk Et0/0 1-4094
Port Vlans allowed and active in management domain Et0/0 1,12-13
Port Vlans in spanning tree forwarding state and not pruned Et0/0 1,12-13
R1(config)#int e0/1 R1(config-if)#no shut R1(config-if)# *Nov 7 18:00:26.934: %LINK-3-UPDOWN: Interface Ethernet0/1, changed state to up *Nov 7 18:00:27.938: %LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet0/1, changed state to up R1(config-if)#int e0/1.12 R1(config-subif)#encapsulation dot1Q 12
R1(config-subif)#ip add 192.168.12.1 255.255.255.252 R1(config-subif)#no shut
R1(config)#int e0/1.13
R1(config-subif)#encapsulation dot1Q 13
R1(config-subif)#ip add 192.168.13.1 255.255.255.252 R1(config-subif)#no shut
R2(config-if)#int e0/0 R2(config-if)#no shut R2(config-if)#ip addr 192.168.12.2 255.255.255.252
R2#ping 192.168.12.1 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 192.168.12.1, timeout is 2 seconds: .!!!! Success rate is 80 percent (4/5), round-trip min/avg/max = 1/2/4 ms
R3(config)#int e0/0 R3(config-if)#no shut R3(config-if)#ip add 192.168.13.2 255.255.255.252 R3#ping 192.168.13.1 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 192.168.13.1, timeout is 2 seconds: .!!!! Success rate is 80 percent (4/5), round-trip min/avg/max = 1/1/2 ms
R3(config-if)#int e0/1.50 R3(config-subif)#no shut
R3(config-subif)#encapsulation dot1Q 50 R3(config-subif)#ip addr 192.168.50.1 255.255.255.224 R3(config-subif)#int e0/1.51
R3(config-subif)#encapsulation dot1Q 51
R3(config-subif)#ip addr 192.168.51.1 255.255.255.240 R3(config-subif)#no shut
SW2(config)#vlan 50 SW2(config-vlan)#name VLAN50 SW2(config-vlan)#vlan 51 SW2(config-vlan)#name VLAN51
SW2(config)#int e0/0
SW2(config-if)#switchport trunk encapsulation dot1q SW2(config-if)#switchport mode trunk
SW2(config)#int e0/1 SW2(config-if)#switchport mode access
SW2(config-if)#switchport access vlan 50 SW2(config-if)#int e0/2
SW2(config-if)#switchport mode access
SW2(config-if)#switchport access vlan 51
iguration commands, one per line. End with CNTL/Z. SW3(config)#int e0/0 SW3(config-if)#no shut SW3(config-if)#swi SW3(config-if)#switchport e
SW3(config-if)#switchport e? % Unrecognized command SW3(config-if)#switchport trunk encapsulation dot1q SW3(config-if)#swit SW3(config-if)#switchport mode trunk SW3(config-if)# *Nov 7 18:34:37.878: %LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet0/0, changed state to down SW3(config-if)# *Nov 7 18:34:40.893: %LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet0/0, changed state to up SW3(config-if)#int e0/1 SW3(config-if)#swi SW3(config-if)#vlan 10
SW3(config-vlan)#name VLAN10 SW3(config-vlan)#vlan 20 SW3(config-vlan)#name VLAN20 SW3(config-vlan)#vlan 30 SW3(config-vlan)#name VLAN30 SW3(config-vlan)#
R6(config)#int e0/1 R6(config-if)#no shut R6(config-if)#int e0/1.60 R6(config-subif)#no shut R6(config-subif)#encapsulation dot1Q 60 R6(config-subif)#ip addr 192.168.60.0 255.255.255.0 Bad mask /24 for address 192.168.60.0 R6(config-subif)#ip addr 192.168.60.1 255.255.255.0 R6(config-subif)#int e0/1.61
R6(config-subif)#encapsulation dot1Q 61
R6(config-subif)#no shut R6(config-subif)#ip addr 192.168.61.1 255.255.255.0
SW7(config)#vlan 60 SW7(config-vlan)#name VLAN60 SW7(config-vlan)#vlan 61 SW7(config-vlan)#name VLAN61
SW7(config-if)#int e0/1 SW7(config-if)#no shut SW7(config-if)#switchport access vlan 60 SW7(config-if)#int e0/2 SW7(config-if)#no shut SW7(config-if)#switchport access vlan 61 SW7(config-if)#int e0/0 SW7(config-if)#no shut SW7(config-if)#switchport trunk encapsulation dot1q SW7(config-if)#switchport mode trunk
VPCS> ip 192.168.60.100 24 192.168.60.1
VPCS> save
VPCS> ip 192.168.61.100 25 192.168.61.1
VPCS> save
! Configure trunk SW4(config)#int e0/1 SW4(config-if)#no shut
SW4(config-if)#switchport trunk encapsulation dot1q SW4(config-if)#switchport mode trunk SW4(config-if)#int e0/0 SW4(config-if)#switchport trunk encapsulation dot1q
SW4(config-if)#switchport mode trunk SW4(config-if)#no shut
SW4#sh int trunk
Port Mode Encapsulation Status Native vlan Et0/0 on 802.1q trunking 1 Et0/1 on 802.1q trunking 1
Port Vlans allowed on trunk Et0/0 1-4094 Et0/1 1-4094
Port Vlans allowed and active in management domain Et0/0 1 Et0/1 1
Port Vlans in spanning tree forwarding state and not pruned Et0/0 1 Et0/1 none
! Configure trunk SW3(config)#int e0/1 SW3(config-if)#no shut SW3(config-if)#switchport trunk encapsulation dot1q SW3(config-if)#switchport mode trunk SW3(config-if)#int e0/2 SW3(config-if)#no shut SW3(config-if)#switchport trunk encapsulation dot1q SW3(config-if)#switchport mode trunk SW3(config-if)#do copy run start
! Configure trunk SW5(config)#int e0/2 SW5(config-if)#no shut SW5(config-if)#switchport trunk encapsulation dot1q SW5(config-if)#switchport mode trunk SW5(config-if)#int e0/1 SW5(config-if)#no shut SW5(config-if)#switchport trunk encapsulation dot1q SW5(config-if)#switchport mode trunk SW5(config-if)#do wr
SW5#sh int trunk
Port Mode Encapsulation Status Native vlan Et0/1 on 802.1q trunking 1 Et0/2 on 802.1q trunking 1
Port Vlans allowed on trunk Et0/1 1-4094 Et0/2 1-4094
Port Vlans allowed and active in management domain Et0/1 1 Et0/2 1
Port Vlans in spanning tree forwarding state and not pruned Et0/1 1 Et0/2 1
SW3(config)#vtp domain NetChallenge Changing VTP domain name from NULL to NetChallenge SW3(config)#vtp password NetChallenge
SW4(config)#vtp mode client SW4(config)#vtp domain NetChallenge Changing VTP domain name from NULL to NetChallenge SW4(config)#vtp password NetChallenge
SW4(config)#do wr
như SW4
SW3(config)#vlan 10 SW3(config-vlan)#name NC-Staff SW3(config-vlan)#vlan 20 SW3(config-vlan)#name NC-Student SW3(config-vlan)#vlan 30 SW3(config-vlan)#name NC-Guest
SW4#sh vlan
VLAN Name Status Ports
1 default active Et0/2, Et0/3, Et1/0, Et1/1 Et1/2, Et1/3 10 NC-Staff active
20 NC-Student active
30 NC-Guest active
1002 fddi-default act/unsup 1003 token-ring-default act/unsup 1004 fddinet-default act/unsup 1005 trnet-default act/unsup
VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
1 enet 100001 1500 - - - - - 0 0
10 enet 100010 1500 - - - - - 0 0
20 enet 100020 1500 - - - - - 0 0
30 enet 100030 1500 - - - - - 0 0
1002 fddi 101002 1500 - - - - - 0 0
1003 tr 101003 1500 - - - - srb 0 0
1004 fdnet 101004 1500 - - - ieee - 0 0
1005 trnet 101005 1500 - - - ibm - 0 0
Primary Secondary Type Ports
SW5#sh vlan
VLAN Name Status Ports
1 default active Et0/0, Et0/3, Et1/0, Et1/1 Et1/2, Et1/3 10 NC-Staff active
20 NC-Student active
30 NC-Guest active
1002 fddi-default act/unsup 1003 token-ring-default act/unsup 1004 fddinet-default act/unsup 1005 trnet-default act/unsup
VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
1 enet 100001 1500 - - - - - 0 0
10 enet 100010 1500 - - - - - 0 0
20 enet 100020 1500 - - - - - 0 0
30 enet 100030 1500 - - - - - 0 0
1002 fddi 101002 1500 - - - - - 0 0
1003 tr 101003 1500 - - - - srb 0 0
1004 fdnet 101004 1500 - - - ieee - 0 0
1005 trnet 101005 1500 - - - ibm - 0 0
Primary Secondary Type Ports
Checking for duplicate address... VPCS : 192.168.20.100 255.255.252.0 gateway 192.168.20.1
SW4(config)#int e0/2 SW4(config-if)#switchport mode access SW4(config-if)#switchport access vlan 10 SW4(config-if)#int e0/3 SW4(config-if)#switchport mode access SW4(config-if)#switchport access vlan 20
! na ná
VPC4 → VPC5 ⇒ R6, SW7 hoạt động VLAN 60, 61
VPC1 → SW1 (int e0/2 ip .2):
SW5 (int e0/3 ip.2)→ VPC2 :
FileServer → WebServer:
PC1 → R2:
PC1 → interface VLan30 của R2:
PC1 → interface VLan20 của R2:
PC1 → PC3:
PC1 → PC2:
spanning-tree vlan 10 priority 4096
! Due to the default configuration, there is no more to configure to match flow SW4 → SW3
(conf-t): spanning-tree vlan 20 priority 4096
! The default configuration matches the requirement: VPC3 → SW5 → SW3 → R2
PC1 → PC3:
PC1 → R2 interface vlan 30:
PC2 → R2 interface vlan 20:
router ospf 100 network 192.168.12.1 0.0.0.0 area 0 network 192.168.13.1 0.0.0.0 area 0
router ospf 100 network 192.168.10.1 0.0.0.0 area 0 network 192.168.12.2 0.0.0.0 area 0 network 192.168.20.1 0.0.0.0 area 0 network 192.168.32.1 0.0.0.0 area 0
! R1 has a static replicated route, perhaps received from DHCP.
! New knowledge note:
redistribute (static, EIGRP, BGP, RIP, etc) will redistribute only classful subnets (like /8, /16, /24). If want to redistribute classless subnets, please append keyword “subnets” into the command.
redistribute static will not include the default static route. Refer to Here.
router ospf 100 redistribute static subnets network 192.168.12.1 0.0.0.0 area 0 network 192.168.13.1 0.0.0.0 area 0 default-information originate
R3 → interface e0/0 of R1:
R2 → interface e0/0 of R1:
VPC 3 → Web Server:
R1(config-if)#int e0/0 R1(config-if)#ip nat outside R1(config)#int e0/1.12 R1(config-subif)#ip nat inside R1(config-subif)#int e0/1.13 R1(config-subif)#ip nat inside
R1(config)#access-list 1 permit 192.168.10.100 R1(config)#access-list 1 permit 192.168.20.100 R1(config)#access-list 1 permit 192.168.32.100 R1(config)#access-list 1 permit 192.168.50.10 R1(config)#access-list 1 permit 192.168.51.10
R1(config)#ip nat inside source list 1 interface e0/0 overload
R1#sh access-lists 1
VPC1 → 8.8.8.8:
VPC3 → 8.8.8.8:
File Server → 8.8.8.8:
Web Server → 8.8.8.8:
ip nat inside source static 192.168.50.10 100.100.100.100
! I don’t know how to configure IP in VPC6 until check the cloud “Internet” ! Turn out the cloud is a router, with configuration is:
VPCS> ip 111.111.111.120/24 111.111.111.111
ping 100.100.100.100
! advice: “extended ACLs approved as close to the src as possible” ⇒ R1 interface e0/1 direction in
access-list 100 permit tcp 192.168.20.0 0.0.3.255 host 192.168.51.10 eq ftp access-list 100 permit ip192.168.10.0 0.0.0.255 host 192.168.51.10 access-list 100 deny ip any host 192.168.51.10 access-list 100 permit ip any any R1(config)#int e0/1.12 R1(config-subif)#ip access-group 100 in
VPC 1, VPC2 → File server: