S1
conf t
int fa 0/0
no shut
ip add 10.1.10.1 255.255.255.0
exi
ip route 0.0.0.0 0.0.0.0 10.1.10.254
S2
conf t
int fa 0/0
no shut
ip add 10.1.20.1 255.255.255.0
exi
ip route 0.0.0.0 0.0.0.0 10.1.20.254
S3
conf t
int fa 0/0
no shut
ip add 10.1.30.1 255.255.255.0
exi
ip route 0.0.0.0 0.0.0.0 10.1.30.254
S4
conf t
int fa 0/0
no shut
ip add 10.1.40.1 255.255.255.0
exi
ip route 0.0.0.0 0.0.0.0 10.1.40.254
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
ASW
conf t
vlan 10,20,30,40
int e 0/0
sw mo a
sw a v 10
exi
int e 0/1
sw mo a
sw a v 20
exi
int e 0/2
sw mo a
sw a v 30
exi
int e 0/3
sw mo a
sw a v 40
exi
int rang e 1/0 - 3
sw t e d
sw m t
exi
DSW
ip routing
no ip cef
vlan 10,20,30,40,50
exi
int vlan 10
no shut
ip add 10.1.10.254 255.255.255.0
exi
int vlan 20
no shut
ip add 10.1.20.254 255.255.255.0
exi
int vlan 30
no shut
ip add 10.1.30.254 255.255.255.0
exi
int vlan 40
no shut
ip add 10.1.40.254 255.255.255.0
exi
int vlan 50
no shut
ip add 10.1.50.250 255.255.255.0
exi
int rang e 1/0 - 3
sw t e d
sw m t
exi
int e 0/0
sw mo a
sw a v 50
exi
router rip
ver 2
no auto
net 10.0.0.0
exi
GW
conf t
int fa 0/0
no shut
ip add 10.1.50.254 255.255.255.0
ip nat in
exi
int fa 0/1
no shut
ip add 1.1.12.1 255.255.255.0
ip nat out
exi
access-list 1 permit 10.1.0.0 0.0.255.255
ip nat inside source list 1 int fa 0/1 over
ip route 8.8.8.0 255.255.255.0 1.1.12.2
router rip
ver 2
no auto
net 10.0.0.0
default-information ori
internet
int fa0/1
no shut
ip add 1.1.12.2 255.255.255.0
exi
int lo 0
ip add 8.8.8.8 255.255.255.0
asw
ASW(config)#spanning-tree mode rapid-pvst
ASW(config)#int rang e 1/0 - 3
ASW(config-if-range)#sw t all vlan 10,20,30,40
ASW(config-if-range)#end
ASW#conf t
ASW(config)#int range e 1/0 - 3
ASW(config-if-range)#sw nonegotiate
ASW#show spanning-tree
dsw
DSW(config)#spanning-tree mode rapid-pvst
DSW(config)#spanning-tree vlan 10 root primary
DSW(config)#spanning-tree vlan 20 root primary
DSW(config)#spanning-tree vlan 30 root primary
DSW(config)#spanning-tree vlan 40 root primary
DSW(config)#int range ethernet 1/0 - 3
DSW(config-if-range)#switchport trunk allowed vlan 10,20,30,40
DSW(config-if-range)#switchport nonegotiate
DSW(config-if-range)#exit
로드분산 확인
DSW(config)#int e 1/0
DSW(config-if)#spanning-tree vlan 10 port-priority 0
DSW(config-if)#int e 1/1
DSW(config-if)#spanning-tree vlan 20 port-priority 0
DSW(config-if)#int e 1/2
DSW(config-if)#spanning-tree vlan 30 port-priority 0
DSW(config-if)#int e 1/3
DSW(config-if)#spanning-tree vlan 40 port-priority 0
DSW(config-if)#end
DSW#show mac add
Mac Address Table
-------------------------------------------
Vlan Mac Address Type Ports
---- ----------- -------- -----
10 cc01.1560.0000 DYNAMIC Et1/0
20 cc02.03a4.0000 DYNAMIC Et1/1
30 cc03.2d74.0000 DYNAMIC Et1/2
40 cc04.2ca0.0000 DYNAMIC Et1/3
50 cc05.2080.0000 DYNAMIC Et0/0