文章目录
- 综合实验2
- sw3:
- sw4:
- gw:
- core1(sw1):
- core2(sw2):
- ISP
综合实验2
sw3:
vlan 2
stp mode stp
int e0/0/1
port link-type trunk
port trunk allow-pass vlan 2
int e0/0/2
port link-type trunk
port trunk allow-pass vlan 2
int e0/0/3
port link-type access
port default vlan 2
sw4:
vlan 3
stp mode stp
int e0/0/1
port link-type trunk
port trunk allow-pass vlan 3
int e0/0/2
port link-type trunk
port trunk allow-pass vlan 3
int e0/0/3
port link-type access
port default vlan 3
gw:
int loopback0
ip add 1.1.1.1 32
int g0/0/0
ip add 192.168.10.2 24
int g0/0/1
ip add 192.168.11.2 24
int g0/0/2
ip add 12.1.1.1 24
ospf 1 router-id 1.1.1.1
area 0
network 1.1.1.1 0
network 192.168.10.2 0
network 192.168.11.2 0
default-route-advertise
ip route-static 0 0 12.1.1.2
acl 2000
rule permit source any
nat outbound 2000
core1(sw1):
vlan batch 2 3 10
stp mode stp
stp priority 4096
int g0/0/4
port link-type trunk
port trunk allow-pass vlan 2 3
int g0/0/5
port link-type trunk
port trunk allow-pass vlan 2 3
int Eth-Trunk 1
mode lacp
trunkport GigabitEthernet 0/0/2 to 0/0/3
port link-type trunk
port trunk allow-pass vlan all
int g0/0/1
port link-type access
port default vlan 10
int vlanif 10
ip add 192.168.10.1 24
int LoopBack0
ip add 2.2.2.2 32
ospf 1 router-id 2.2.2.2
area 0
network 0.0.0.0 255.255.255.255
int vlanif 2
ip add 192.168.2.1 24
int vlanif 3
ip add 192.168.3.1 24
core2(sw2):
vlan batch 2 3 11
stp mode stp
stp priority 8192
int g0/0/4
port link-type trunk
port trunk allow-pass vlan all
int g0/0/5
port link-type trunk
port trunk allow-pass vlan all
int Eth-Trunk 1
mode lacp
trunkport GigabitEthernet 0/0/2 to 0/0/3
port link-type trunk
port trunk allow-pass vlan all
int g0/0/1
port link-type access
port default vlan 11
int vlanif 11
ip add 192.168.11.1 24
int LoopBack0
ip add 3.3.3.3 32
ospf 1 router-id 3.3.3.3
area 0
network 0.0.0.0 255.255.255.255
int vlanif 2
ip add 192.168.2.2 24
int vlanif 3
ip add 192.168.3.2 24
ISP
配置12.1.1.2 24