- gossh.net2014-08-30中级会员74054
- 本帖最后由 gossh.net 于 2014-8-30 21:01 编辑 *
- [root@cloud network-scripts]# ifconfig
- 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:4 errors:0 dropped:0 overruns:0 frame:0
- TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:0
- RX bytes:240 (240.0 b) TX bytes:240 (240.0 b)
- - seth0 Link encap:Ethernet HWaddr 00:15:5D:0A:35:76
- inet addr:27.126.176.42 Bcast:27.126.176.255 Mask:255.255.255.0
- inet6 addr: fe80::215:5dff:fe0a:3576/64 Scope:Link
- UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
- RX packets:14250 errors:0 dropped:0 overruns:0 frame:0
- TX packets:359 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:1000
- RX bytes:950778 (928.4 KiB) TX bytes:39657 (38.7 KiB)
- 复制代码
- [root@cloud network-scripts]# cat ifcfg-eth0
- DEVICE=seth0
- BOOTPROTO="static"
- ONBOOT=yes
- TYPE=Ethernet
- HWADDR=00:15:5d:0a:35:76
- IPADDR=27.126.176.42
- NETMASK=255.255.255.0
- GATEWAY=27.126.176.254
- 复制代码
- [root@cloud network-scripts]# cat ifcfg-eth0:1
- DEVICE=seth0:1
- BOOTPROTO="static"
- ONBOOT=yes
- TYPE=Ethernet
- HWADDR=00:15:5d:0a:35:76
- IPADDR=27.126.176.43
- NETMASK=255.255.255.0
- GATEWAY=27.126.176.254
- 复制代码
- [root@cloud network-scripts]# service network restart
- Shutting down interface eth0: Device state: 3 (disconnected)
- [ OK ]
- 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/3
- [ OK ]
- [root@cloud network-scripts]#
- 复制代码
弄死加不进去
怎么破?