网络工程
简单的配置
需求
两台交换机
两台路由器
两台PC
AR1配置静态路由
system-view
[HUAWEI]sysname ar1
[ar1]interface g 0/0/0
[ar1-G…0/0/0]ip address 192.168.2.1 24
[ar1-G…0/0/0]quit
[ar1]interface g 0/0/1
[ar1-G…0/0/1]ip address 192.168.3.1 24
[ar1-G…0/0/1]quit
配置下一条地址
ip route-static 192.168.2.0 24 192.168.3.2
AR2配置静态路由
system-view
[HUAWEI]sysname ar2
[ar2]interface g 0/0/0
[ar2-G…0/0/0]ip address 192.168.1.1 24
[ar2-G…0/0/0]quit
[ar2]interface g 0/0/1
[ar2-G…0/0/1]ip address 192.168.3.2 24
[ar2-G…0/0/1]quit
配置下一条地址
ip route-static 192.1