如何将 Ubuntu 变成路由器?

如何将 Ubuntu 变成路由器?

我有一个旧的 Ubuntu 10.04 安装,我想把它变成路由器。我有一部带 3g 的手机,通过 USB 绑定到我的电脑,我想用以太网连接一个 Vonage 盒子。

Nexus 4 ---------->> 电脑 --------------->> Vonage

网络可以在互联网上运行,但是 vonage 现在无法访问互联网。

请帮忙!

编辑:这是 ifconfig -a 的结果:

eth0      Link encap:Ethernet  HWaddr 00:24:e8:eb:a0:82  
      inet6 addr: fe80::224:e8ff:feeb:a082/64 Scope:Link
      UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
      RX packets:2460 errors:0 dropped:0 overruns:0 frame:0
      TX packets:1811 errors:0 dropped:0 overruns:0 carrier:0
      collisions:0 txqueuelen:1000 
      RX bytes:942876 (942.8 KB)  TX bytes:212067 (212.0 KB)
      Interrupt:27 Base address:0x4000 

lo        Link encap:Local Loopback  
      inet addr:127.0.0.1  Mask:255.0.0.0
      inet6 addr: ::1/128 Scope:Host
      UP LOOPBACK RUNNING  MTU:16436  Metric:1
      RX packets:529 errors:0 dropped:0 overruns:0 frame:0
      TX packets:529 errors:0 dropped:0 overruns:0 carrier:0
      collisions:0 txqueuelen:0 
      RX bytes:45433 (45.4 KB)  TX bytes:45433 (45.4 KB)

usb0      Link encap:Ethernet  HWaddr 92:50:73:bb:25:38  
      inet addr:192.168.42.232  Bcast:192.168.42.255  Mask:255.255.255.0
      inet6 addr: fe80::9050:73ff:febb:2538/64 Scope:Link
      UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
      RX packets:3076 errors:0 dropped:0 overruns:0 frame:0
      TX packets:3913 errors:0 dropped:0 overruns:0 carrier:0
      collisions:0 txqueuelen:1000 
      RX bytes:1597102 (1.5 MB)  TX bytes:692155 (692.1 KB)

wlan0     Link encap:Ethernet  HWaddr 0c:ee:e6:9c:8a:62  
      UP BROADCAST MULTICAST  MTU:1500  Metric:1
      RX packets:0 errors:0 dropped:0 overruns:0 frame:0
      TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
      collisions:0 txqueuelen:1000 
      RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

相关内容