今天,修改测试数据库的eth1网卡ip,修改后重启network看似正常。
-
# service network restart
-
Shutting down interface eth0: Device state: 3 (disconnected)
-
[ OK ]
-
Shutting down interface eth1: Error: Device 'eth1' (/org/freedesktop/NetworkManager/Devices/1) disconnecting failed: This device is not active
-
[FAILED]
-
Shutting down loopback interface: [ OK ]
-
Bringing up loopback interface: [ OK ]
-
Bringing up interface eth0: Active connection state: activated
-
Active connection path: /org/freedesktop/NetworkManager/ActiveConnection/13
-
[ OK ]
-
Bringing up interface eth1: Active connection state: activated
-
Active connection path: /org/freedesktop/NetworkManager/ActiveConnection/14
-
[ OK ]
但是,ifconfig命名的返回结果中,eth1网卡没有ip地址。
-
# ifconfig
-
eth0 Link encap:Ethernet HWaddr 00:50:56:93:60:98
-
inet addr:10.2.5.198 Bcast:10.2.5.255 Mask:255.255.255.0
-
inet6 addr: fe80::250:56ff:fe93:6098/64 Scope:Link
-
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
-
RX packets:427351 errors:0 dropped:10 overruns:0 frame:0
-
TX packets:361592 errors:0 dropped:0 overruns:0 carrier:0
-
collisions:0 txqueuelen:1000
-
RX bytes:630539714 (601.3 MiB) TX bytes:42207347 (40.2 MiB)
-
-
eth1 Link encap:Ethernet HWaddr 00:50:56:93:7B:0B
-
inet6 addr: fe80::250:56ff:fe93:7b0b/64 Scope:Link
-
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
-
RX packets:7118 errors:0 dropped:6 overruns:0 frame:0
-
TX packets:11 errors:0 dropped:0 overruns:0 carrier:0
-
collisions:0 txqueuelen:1000
-
RX bytes:535725 (523.1 KiB) TX bytes:746 (746.0 b)
-
-
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:19693 errors:0 dropped:0 overruns:0 frame:0
-
TX packets:19693 errors:0 dropped:0 overruns:0 carrier:0
-
collisions:0 txqueuelen:0
-
RX bytes:12561302 (11.9 MiB) TX bytes:12561302 (11.9 MiB)
解决办法:重启NetworkManager服务器即可
-
# service NetworkManager restart
-
Stopping NetworkManager daemon: [ OK ]
-
Setting network parameters... [ OK ]
-
Starting NetworkManager daemon: [ OK ]
-
-
-
# ifconfig
-
eth0 Link encap:Ethernet HWaddr 00:50:56:93:60:98
-
inet addr:10.2.5.198 Bcast:10.2.5.255 Mask:255.255.255.0
-
inet6 addr: fe80::250:56ff:fe93:6098/64 Scope:Link
-
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
-
RX packets:430159 errors:0 dropped:13 overruns:0 frame:0
-
TX packets:364250 errors:0 dropped:0 overruns:0 carrier:0
-
collisions:0 txqueuelen:1000
-
RX bytes:630942088 (601.7 MiB) TX bytes:42548107 (40.5 MiB)
-
-
eth1 Link encap:Ethernet HWaddr 00:50:56:93:7B:0B
-
inet addr:192.168.1.208 Bcast:192.168.1.255 Mask:255.255.255.0
-
inet6 addr: fe80::250:56ff:fe93:7b0b/64 Scope:Link
-
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
-
RX packets:1 errors:0 dropped:6 overruns:0 frame:0
-
TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
-
collisions:0 txqueuelen:1000
-
RX bytes:60 (60.0 b) TX bytes:258 (258.0 b)
阅读(2147) | 评论(0) | 转发(0) |