sys r1
int g0/0/0
ip add 192.168.12.1 24
int lo 99
ip add 192.168.99.100 32
ospf 1 router-id 1.1.1.1
area 0
net 192.168.12.0 0.0.0.255
net 192.168.99.100 0.0.0.0
telnet server enable
user-interface vty 0 4
protocol inb telne
authen pass
set auth pass ci admin
user pri leve 15
ip route-s 0.0.0.0 0 12.0.0.2
sys
sys sw1
dhcp enable
vlan batch 10 20 30 40 99
int g0/0/1
p l t
p t a v 10 20 30 40 99
int g0/0/3
p l t
p t a v 10 20 30 40 99
int vlanif 10
ip add 192.168.10.254 24
dhcp sel int
int vlanif 20
ip add 192.168.20.254 24
dhcp sel int
int vlanif 30
ip add 192.168.30.254 24
dhcp sel int
int vlanif 40
ip add 192.168.40.254 24
dhcp sel int
int vlanif 99
ip add 192.168.99.1 24
stp pri 4096
telnet server enable
user-interface vty 0 4
protocol inb telne
authen pass
set auth pass ci admin
user pri leve 15
vlan 12
int g0/0/2
p l a
p d v
全网互通实验
于 2022-04-10 09:00:35 首次发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)