3.6.1
int s0/0/1
ip add 209.165.201.2 255.255.255.252
no shut-down
int s0/0/1
username ISP password cisco
encapsulation ppp
ppp authentication chap
int s0/0/0
ip add 10.0.0.1 255.255.255.248
no shut-down
encapsulation frame-relay
frame-relay map ip 10.0.0.2 102 broadcast
frame-relay map ip 10.0.0.3 103 broadcast
frame-relay map ip 10.0.0.4 104 broadcast IETF
frame-relay lmi-type ansi
int s0/0/0
ip add 10.0.0.2 255.255.255.248
no shut-down
encapsulation frame-relay
frame-relay map ip 10.0.0.1 201 broadcast
frame-relay map ip 10.0.0.3 203 broadcast
frame-relay map ip 10.0.0.4 204 broadcast ietf
frame-relay lmi-type ansi
int s0/0/0
ip add 10.0.0.3 255.255.255.248
no shutdown
encapsulation frame-relay
frame-relay map ip 10.0.0.1 301 broadcast
frame-relay map ip 10.0.0.2 302 broadcast
frame-relay map ip 10.0.0.4 304 broadcast ietf
frame-relay lmi-type ansi
int s0/0/0
ip add 10.0.0.4 255.255.255.248
no shutdown
encapsulation frame-relay ietf
frame-relay map ip 10.0.0.1 401 broadcast cisco
frame-relay map ip 10.0.0.2 402 broadcast cisco
frame-relay map ip 10.0.0.3 403 broadcast cisco
frame-relay lmi-type ansi
ip route 10.1.100.0 255.255.255.0 10.0.0.2
ip route 10.1.10.0 255.255.255.0 10.0.0.3
ip route 10.1.20.0 255.255.255.0 10.0.0.3
ip route 10.1.30.0 255.255.255.0 10.0.0.3
ip route 10.1.99.0 255.255.255.0 10.0.0.3
ip route 10.1.200.0 255.255.255.0 10.0.0.4
ip route 0.0.0.0 0.0.0.0 s0/0/1
ip route 10.1.10.0 255.255.255.0 10.0.0.3
ip route 10.1.20.0 255.255.255.0 10.0.0.3
ip route 10.1.30.0 255.255.255.0 10.0.0.3
ip route 10.1.99.0 255.255.255.0 10.0.0.3
ip route 10.1.200.0 255.255.255.0 10.0.0.4
ip route 0.0.0.0 0.0.0.0 10.0.0.1
ip route 10.1.100.0 255.255.255.0 10.0.0.2
ip route 10.1.200.0 255.255.255.0 10.0.0.4
ip route 0.0.0.0 0.0.0.0 10.0.0.1
ip route 10.1.100.0 255.255.255.0 10.0.0.2
ip route 10.1.10.0 255.255.255.0 10.0.0.3
ip route 10.1.20.0 255.255.255.0 10.0.0.3
ip route 10.1.30.0 255.255.255.0 10.0.0.3
ip route 10.1.99.0 255.255.255.0 10.0.0.3
ip route 0.0.0.0 0.0.0.0 10.0.0.1
int f0/0
no shutdown
int f0/0.10
encapsulation dot1Q 10
ip add 10.1.10.1 255.255.255.0
int f0/0.20
encapsulation dot1Q 20
ip add 10.1.20.1 255.255.255.0
int f0/0.30
encapsulation dot1Q 30
ip add 10.1.30.1 255.255.255.0
int f0/0.99
encapsulation dot1Q 99 native//注意vlan 99為本征vlan
ip add 10.1.99.1 255.255.255.0
S1:
vtp mode server
vtp domain CCNA
vtp password cisco
S2和S3:
vtp mode client
vtp domain CCNA
vtp password cisco
S1:
int range f0/1-5
switchport mode trunk
switchport trunk native vlan 99
S2和S3:
int range f0/1-4
switchport mode trunk
switchport trunk native vlan 99
S1,S2,S3:
int vlan 99
ip add 10.1.99.11 255.255.255.0
exit
ip default-gateway 10.1.99.1//??
spanning-tree vlan 1 priority 4096
spanning-tree vlan 10 priority 4096
spanning-tree vlan 20 priority 4096
spanning-tree vlan 30 priority 4096
spanning-tree vlan 99 priority 4096
int range f0/1-5
switchport access vlan 99
int range f0/6-10
switchport mode access
switchport access vlan 10
int range f0/11-15
switchport mode access
switchport access vlan 20
int range f0/16-20
switchport mode access
switchport access vlan 30