Linux 下 ifcfg-eth0,1等檔案加上.bak 也可以被識別

tolywang發表於2009-05-11

[root@dmdii-node2 network-scripts]# cat ifcfg-eth0
BOOTPROTO=static
NETMASK=255.255.255.128
IPADDR=172.20.1.149
DEVICE=eth0
ONBOOT=no
HWADDR=00:06:5B:F6:20:27

 

[root@dmdii-node2 network-scripts]#
[root@dmdii-node2 network-scripts]# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:06:5B:F6:20:27 
          inet addr:172.17.2.250  Bcast:172.17.7.255  Mask:255.255.248.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:10 errors:0 dropped:0 overruns:0 frame.:0
          TX packets:1 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:752 (752.0 b)  TX bytes:64 (64.0 b)
          Interrupt:28 Memory:fcb10000-fcb20000

eth2      Link encap:Ethernet  HWaddr 00:02:B3:97:77:4F 
          inet addr:10.156.4.99  Bcast:10.156.7.255  Mask:255.255.252.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1406 errors:0 dropped:0 overruns:0 frame.:0
          TX packets:577 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:85773 (83.7 Kb)  TX bytes:67494 (65.9 Kb)
          Interrupt:24 Base address:0xccc0 Memory:fcd20000-fcd20038

lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:10 errors:0 dropped:0 overruns:0 frame.:0
          TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:700 (700.0 b)  TX bytes:700 (700.0 b)

 

 

drwxr-xr-x    8 root     root         4.0K Dec 31 13:37 ..
-rw-r--r--    1 root     root          111 May 10 11:02 ifcfg-eth0
-rw-r--r--    1 root     root          107 Nov  9  2007 ifcfg-eth0.bak071109
-rw-r--r--    1 root     root          103 May 10 11:02 ifcfg-eth1
-rw-r--r--    1 root     root          106 Feb 26  2006 ifcfg-eth2
-rw-r--r--    1 root     root          254 Jun 21  2001 ifcfg-lo


[root@dmdii-node2 network-scripts]# cat ifcfg-eth0.bak071109
BOOTPROTO=static
NETMASK=255.255.248.0
IPADDR=172.17.2.250
DEVICE=eth0
ONBOOT=yes
HWADDR=00:06:5B:F6:20:27
[root@dmdii-node2 network-scripts]#

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/35489/viewspace-594724/,如需轉載,請註明出處,否則將追究法律責任。

相關文章