Tue 24 June 2014

Filed under Tech

Tags openwrt mentohust 西电 锐捷

如题,帮舍友在他的路由器上配置 mentohust,认证成功之后却又无法上网。 在终端输入route指令才发现是少了条网关。

root@DreamBox:~# route 
Kernel IP routing table 
Destination     Gateway   Genmask          Flags   Metric  Ref   Use   Iface  
115.155.44.0     *        255.255.255.0    U       0       0     0     eth1.1 
192.168.1.0      *        255.255.255.0    U       0       0     0     wl0 

使用以下命令添加一条route即可
root@DreamBox:~# route add default gw 115.155.44.254

结果如下所示:

root@DreamBox:~# route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 115.155.44.0 * 255.255.255.0 U 0 0 0 eth1.1 192.168.1.0 * 255.255.255.0 U 0 0 0 wl0 default 115.155.44.254 0.0.0.0 UG 0 0 0 eth1.1

Comment

localhost/Ryekee © Ryekee Powered by Pelican and Twitter Bootstrap. Icons by Font Awesome and Font Awesome More