当前位置: 技术问答>linux和unix
ubuntu 上不了网
来源: 互联网 发布时间:2016-08-11
本文导语: 我的服务器是双网卡的,现在配置好了,就是上不去网我的配置如下 eth0 Link encap:Ethernet HWaddr 00:1f:d0:06:7b:58 inet addr:124.128.37.13 Bcast:124.128.37.255 Mask:255.255.255.0 inet6 addr:...
我的服务器是双网卡的,现在配置好了,就是上不去网我的配置如下
eth0 Link encap:Ethernet HWaddr 00:1f:d0:06:7b:58
inet addr:124.128.37.13 Bcast:124.128.37.255 Mask:255.255.255.0
inet6 addr: fe80::21f:d0ff:fe06:7b58/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:18817 errors:0 dropped:0 overruns:0 frame:0
TX packets:547 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:1722073 (1.7 MB) TX bytes:79577 (79.5 KB)
Memory:dc200000-dc220000
eth1 Link encap:Ethernet HWaddr 00:1f:d0:06:7b:59
inet addr:192.168.1.248 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::21f:d0ff:fe06:7b59/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:18432 errors:0 dropped:0 overruns:0 frame:0
TX packets:243 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:1664458 (1.6 MB) TX bytes:10702 (10.7 KB)
Memory:dc100000-dc120000
上内网可以,外网上不去。请问这是怎么回事?
eth0 Link encap:Ethernet HWaddr 00:1f:d0:06:7b:58
inet addr:124.128.37.13 Bcast:124.128.37.255 Mask:255.255.255.0
inet6 addr: fe80::21f:d0ff:fe06:7b58/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:18817 errors:0 dropped:0 overruns:0 frame:0
TX packets:547 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:1722073 (1.7 MB) TX bytes:79577 (79.5 KB)
Memory:dc200000-dc220000
eth1 Link encap:Ethernet HWaddr 00:1f:d0:06:7b:59
inet addr:192.168.1.248 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::21f:d0ff:fe06:7b59/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:18432 errors:0 dropped:0 overruns:0 frame:0
TX packets:243 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:1664458 (1.6 MB) TX bytes:10702 (10.7 KB)
Memory:dc100000-dc120000
上内网可以,外网上不去。请问这是怎么回事?
|
这样设置 网络重启就没了 要永久生效就要在/etc/network/interfaces追加