To automatically enable network you may need to manually edit network interface configuration
Automatically enable network
1. Open terminal and, execute su - command and key in root user password to make sure that you have the privileges to edit network configuration.
2. Change working directory to /etc/sysconfig/network-scripts/
[root@fedora Desktop]# cd /etc/sysconfig/network-scripts/
ifcfg-lo ifdown-post ifup-ipsec ifup-tunnel
ifcfg-p1p1 ifdown-ppp ifup-ipv6 ifup-wireless
ifcfg-p33p1 ifdown-routes ifup-ipx init.ipv6-global
ifdown ifdown-sit ifup-isdn net.hotplug
ifdown-bnep ifdown-tunnel ifup-plip network-functions
ifdown-eth ifup ifup-plusb network-functions-ipv6
ifdown-ippp ifup-aliases ifup-post route-p1p1
ifdown-ipsec ifup-bnep ifup-ppp route-p33p1
ifdown-ipv6 ifup-eth ifup-routes
ifdown-isdn ifup-ippp ifup-sit
[root@fedora network-scripts]#
4. From the example above the network card configuration on the system is ifcfg-p1p1 and ifcfg-p33p1, execute vi command to edit this network interface card. (Please note that network interface name may vary base on your system setting)
[root@fedora network-scripts]# vi ifcfg-p1p1
DEVICE="p1p1"
ONBOOT="no"
NM_CONTROLLED="yes"
TYPE=Ethernet
BOOTPROTO=none
IPADDR0=192.168.1.1
PREFIX0=24
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME="System p1p1"
UUID=46e26279-f69b-daf5-1b79-d03677b7178d
GATEWAY0=172.16.162.129
DNS1=172.16.160.5
DNS2=172.16.160.10
HWADDR=00:1B:11:B4:0E:80
5. Hit 'i' key to enter vi insert mode, and edit ONBOOT="no" to ONBOOT="yes" to enable automatically start network after reboot.
[root@fedora network-scripts]# vi ifcfg-p1p1
DEVICE="p1p1"
6. Hit 'Esc' key twice to exit vi editing mode.
7. To save network configuration setting, hold 'Shift' key and hit 'z' key twice...
[root@fedora network-scripts]# vi ifcfg-p1p1
DEVICE="p1p1"
ONBOOT="yes"
NM_CONTROLLED="yes"
TYPE=Ethernet
BOOTPROTO=none
IPADDR0=192.168.1.1
PREFIX0=24
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME="System p1p1"
UUID=46e26279-f69b-daf5-1b79-d03677b7178d
GATEWAY0=172.16.162.129
DNS1=172.16.160.5
DNS2=172.16.160.10
HWADDR=00:1B:11:B4:0E:80
6. Hit 'Esc' key twice to exit vi editing mode.
7. To save network configuration setting, hold 'Shift' key and hit 'z' key twice...
0 comments:
Post a Comment