ネットワーク設定2010/05/24 |
[1] | サーバー用途ではIPアドレスは固定設定が望ましいため、固定設定に切り替えておきます。 |
[root@dlp ~]# vi /etc/sysconfig/network-scripts/ifcfg-eth0 # Marvell Technology Group Ltd. 88E8053 PCI-E Gigabit Ethernet Controller DEVICE=eth0 HWADDR=00:50:43:00:3B:AE # 変更 ONBOOT= yes # 以下、追記
BOOTPROTO=static TYPE=Ethernet USERCTL=no IPV6INIT=no # DNSサーバーのIPアドレス DNS1=10.0.0.1 # サーバーに割り当てるIPアドレス IPADDR=10.0.0.30 # サブネットマスク NETMASK=255.255.255.0 # デフォルトゲートウェイ GATEWAY=10.0.0.1 [root@dlp ~]# /etc/rc.d/init.d/NetworkManager stop Stopping NetworkManager daemon: [ OK ] [root@dlp ~]# /etc/rc.d/init.d/network start Bringing up loopback interface: [ OK ] Bringing up interface eth0: [ OK ] [root@dlp ~]# chkconfig NetworkManager off [root@dlp ~]# chkconfig network on [root@dlp ~]# eth0 Link encap:Ethernet HWaddr 00:50:43:00:3B:AE inet addr:10.0.0.30 Bcast:10.0.0.255 Mask:255.255.255.0 inet6 addr: fe80::250:43ff:fe00:3bae/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:312 errors:0 dropped:0 overruns:0 frame:0 TX packets:357 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:31976 (31.2 KiB) TX bytes:54972 (53.6 KiB) Interrupt:19 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:8 errors:0 dropped:0 overruns:0 frame:0 TX packets:8 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:896 (896.0 b) TX bytes:896 (896.0 b) |
Sponsored Link |