Open Source Desktop Environment : NetConfCentOS

HomePage :: Categories :: PageIndex :: RecentChanges
Search this site:

Primary Profile

The primary profile settings are found in /etc

HostName

IP address

# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=none
IPADDR=10.10.10.10
NETMASK=255.0.0.0
GATEWAY=10.10.10.11
TYPE=Ethernet
USERCTL=no
PEERDNS=yes
IPV6INIT=no


Red Hat 7 & 8 routes

# cat /etc/sysconfig/static-routes
eth0 net 10.10.0.0 netmask 255.255.0.0 gw 192.168.0.1


CentOS 3&4 RHEL 3&4 routes

# cat /etc/sysconfig/network-scripts/route-eth0
GATEWAY0=192.168.0.1
NETMASK0=255.0.0.0 
ADDRESS0=10.10.0.0 


DNS

# cat /etc/resolv.conf
nameserver 158.43.240.3
nameserver 158.43.240.4


Default & Alternative Network Profiles

CentOS and Red Hat RHEL support multiple network profiles

IP Address

# cat /etc/sysconfig/networking/profiles/default/ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=none
IPADDR=10.10.10.10
NETMASK=255.0.0.0
GATEWAY=10.10.10.11
TYPE=Ethernet
USERCTL=no
PEERDNS=yes
IPV6INIT=no


DNS

# cat /etc/sysconfig/networking/profiles/default/resolv.conf
nameserver 158.43.240.3
nameserver 158.43.240.4


NetworkCommands


REFERRERS
NetworkConfiguration

There are no comments on this page. [Add comment]

Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki
Page was generated in 0.0577 seconds