华为网络配置
【LSW】
undo terminal monitor
system-view
vlan batch 10 20 5
int e0/0/1
port link-type access
port default vlan 10
q
int e0/0/2
port link-type access
port default vlan 200
q
int gi0/0/1
port link-type access
port default vlan 5
q
interface Vlanif 10
ip address 192.168.10.1 24
q
int Vlanif 20
ip address 192.168.20.1 24
q
int Vlanif 5
ip address 192.168.5.2 24
q
[AR2]
undo terminal monitor
system-view
int gi0/0/1
ip address 192.168.5.1 24
q
int gi0/0/0
ip address 192.168.6.1 24
[FW]
undo terminal monitor
system-view
firewall zone trust
add interface gi1/0/0
q
int gi1/0/0
ip address 192.168.6.2 24
service-manage all permit
q
security-policy
rule name trust
source-zone any
destination-zone any
q
q
ip route-static 0.0.0.0 0.0.0.0 192.168.6.1
display ip routing-table
ip route-static 192.168.5.0 24 192.168.6.1
ip route-static 192.168.10.0 24 192.168.6.1
ip route-static 192.168.20.0 24 192.168.6.1
[AR]
system-view
ip route-static 0.0.0.0 0.0.0.0 192.168.6.2
ip route-static 0.0.0.0 0.0.0.0 192.168.5.2
display ip routing-table
ip route-static 192.168.10.0 24 192.168.5.2
ip route-static 192.168.20.0 24 192.168.5.2
[LSW]
ip route-static 0.0.0.0 0.0.0.0 192.168.5.1
display ip routing-table
- 点赞
- 收藏
- 关注作者
评论(0)