Fedora 13 成功设置静态固定IP(重启后还有效)
2010-08-11 11:00
465 查看
这个颜色是要执行的命令
这个颜色是要根据情况改变的参数
1、 打开终端,用su切换到超级用户模式,如下:
[lxy@gpon ~]$ su –m
密码:
[root@gpon ~]#
2、执行gedit /etc/sysconfig/network-scripts/ifcfg-eth0,如下:
[root@localhost neo]#vi /etc/sysconfig/network-scripts/ifcfg-eth0
我的参数设置如下:
# Intel Corporation 82567LM-3 Gigabit Network Connection
DEVICE=eth0
HWADDR=00:21:86:F8:FF:A4
ONBOOT=yes
BOOTPROTO=static <=====[页面设置不成功,则需要手动修改该值]
TYPE=Ethernet
NM_CONTROLLED=yes
USERCTL=no
IPV6INIT=no
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
NAME="System eth0"
UUID=5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03
IPADDR=10.96.20.150
NETMASK=255.255.0.0
DNS2=10.16.8.82
GATEWAY=10.96.1.254
DNS1=10.16.8.80
PREFIX=16
(保存退出)
3、.执行vi /etc/resolv.conf,如:
[root@gpon ~]# vi /etc/resolv.conf
我的参数设置:
# Generated by NetworkManager
nameserver 10.16.8.80
nameserver 10.16.8.82
(保存退出)
4、执行service network restart,,如:
[root@gpon ~]# service network restart
5、执行vi /etc/rc.local,如:
[[root@gpon ~]# vi /etc/rc.local
我的参数设置:
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.
touch /var/lock/subsys/local
route add -net 10.96.20.150 netmask 255.255.255.0 eth0
route add default gw 10.96.1.254 eth0
touch /var/lock/subsys/local
(保存退出)
这个颜色是要根据情况改变的参数
1、 打开终端,用su切换到超级用户模式,如下:
[lxy@gpon ~]$ su –m
密码:
[root@gpon ~]#
2、执行gedit /etc/sysconfig/network-scripts/ifcfg-eth0,如下:
[root@localhost neo]#vi /etc/sysconfig/network-scripts/ifcfg-eth0
我的参数设置如下:
# Intel Corporation 82567LM-3 Gigabit Network Connection
DEVICE=eth0
HWADDR=00:21:86:F8:FF:A4
ONBOOT=yes
BOOTPROTO=static <=====[页面设置不成功,则需要手动修改该值]
TYPE=Ethernet
NM_CONTROLLED=yes
USERCTL=no
IPV6INIT=no
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
NAME="System eth0"
UUID=5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03
IPADDR=10.96.20.150
NETMASK=255.255.0.0
DNS2=10.16.8.82
GATEWAY=10.96.1.254
DNS1=10.16.8.80
PREFIX=16
(保存退出)
3、.执行vi /etc/resolv.conf,如:
[root@gpon ~]# vi /etc/resolv.conf
我的参数设置:
# Generated by NetworkManager
nameserver 10.16.8.80
nameserver 10.16.8.82
(保存退出)
4、执行service network restart,,如:
[root@gpon ~]# service network restart
5、执行vi /etc/rc.local,如:
[[root@gpon ~]# vi /etc/rc.local
我的参数设置:
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.
touch /var/lock/subsys/local
route add -net 10.96.20.150 netmask 255.255.255.0 eth0
route add default gw 10.96.1.254 eth0
touch /var/lock/subsys/local
(保存退出)
相关文章推荐
- fedora-13设置固定IP
- fedora-13设置固定IP
- fedora-11设置固定IP
- 虚拟机下linux red hat 6.8设置静态固定IP、网关及ping通外网
- Linux系列:Fedora虚拟机设置固定IP上网(配置IP、网关、DNS、防止resolv.conf被重写)
- Linux系列:Fedora虚拟机设置固定IP上网(配置IP、网关、DNS、防止resolv.conf被重写)
- Fedora 10设置固定IP
- Linux系列:Fedora虚拟机设置固定IP上网(配置IP、网关、DNS、防止resolv.conf被重写)
- Ubuntu设置固定(静态)ip
- centos下vmware 桥接设置静态ip例子,多次失败,这次终于成功了
- Linux虚拟机Centos 设置固定的静态IP
- vm设置静态、固定ip
- Archlinux设置静态固定IP
- Fedora 设置静态IP
- fedora静态ip设置
- Fedora 17 使用虚拟机桥接上网 静态配置固定IP 的方法
- win7设置固定IP重启后无法上网,ipconfig显示为自动配置IPV4 169.254的地址
- VM上Fedora虚拟机访问外网设置(固定IP)
- Ubuntu中设置固定ip和静态DNS
- 虚拟机设置(增加静态IP&fedora9脱机使用)