1 Ifconfig:
Ifconfig eth0 192.168.1.123 netmask 255.255.255.0
2 Setup:
Redhat Series Proprietary
3 configuration file Mode configuration:
configuration file 1----> Nic information file Vi/etc/sysconfig/network-scripts/ifcfg-eth0
NIC Device name Device=eth0
MAC address
Hwaddr=00:0c:29:91:a7:26
Type is Ethernet
Type=ethernet
Unique identification code
Uuid=a75b9b26-7262-45a4-875e-f5193e6318de
Whether to start with Network service, eth0 effective
Onboot=no
Can be hosted by the Network Manager graphical management tool
Nm_controlled=yes
Whether to obtain IP automatically (none static DHCP)
Bootproto=dhcp
IP Address
Ipaddr=192.168.1.123
Subnet Mask netmask=255.255.255.0
Gateway gateway=192.168.1.1
DNS dns1=202.106.0.20
IPv6 No boot Ipv6init=no
Do not allow non-root users to control this network card
Userctl=no
configuration file 2----> hostname information file vi/etc/sysconfig/networkNetworking=yes
Hostname=localhost.localdomain
Hostname the hostname you just modified temporarily modifies the host name without restarting
configuration file 3---->dns profile vi/etc/resolv.conf
//can write multiple nameserver 202.106.0.20
//Default domain namesearch localhost
Linux Configuration IP Address