此次需配置的华为路由器只有一个eth口配有地址,目的就是将另一个eth0/1口也配上IP,并加入路由广播 。
对接口进行配置首先需进入特权模式.
<zwzw>sys
System View: return to User View with Ctrl+Z.
1.增加eth0/1口IP地址
[zwzw_]int e0/1
[zwzw-Ethernet0/1]ip address 192.168.1.1 255.255.255.0
2.配置将192.168.1.0/24添加进ospf路由,使其可以对外分发.
[zwzw]ospf 1
[zwzw-ospf-1]area 0.0.0.3
[zwzw-ospf-1-area-0.0.0.3]network 192.168.1.0 0.0.0.255
[zwzw-ospf-1-area-0.0.0.3]quit
3.给远程登录加入口令
[zwzw-ui-vty0-4]set auth password cipher dw123456
4.保存
[zwzw_]save
对接口进行配置首先需进入特权模式.
<zwzw>sys
System View: return to User View with Ctrl+Z.
1.增加eth0/1口IP地址
[zwzw_]int e0/1
[zwzw-Ethernet0/1]ip address 192.168.1.1 255.255.255.0
2.配置将192.168.1.0/24添加进ospf路由,使其可以对外分发.
[zwzw]ospf 1
[zwzw-ospf-1]area 0.0.0.3
[zwzw-ospf-1-area-0.0.0.3]network 192.168.1.0 0.0.0.255
[zwzw-ospf-1-area-0.0.0.3]quit
3.给远程登录加入口令
[zwzw-ui-vty0-4]set auth password cipher dw123456
4.保存
[zwzw_]save