wiki:jazz/11-04-25

Version 2 (modified by jazz, 14 years ago) (diff)

--

cat /etc/sysconfig/network/ifcfg-lo 
# Loopback (lo) configuration
IPADDR=127.0.0.1
NETMASK=255.0.0.0
NETWORK=127.0.0.0
BROADCAST=127.255.255.255
IPADDR_2=127.0.0.2/8
STARTMODE=onboot
USERCONTROL=no
FIREWALL=no
BOOTPROTO='dhcp'
#BROADCAST=''
#ETHTOOL_OPTIONS=''
#IPADDR=''
MTU=''
#NAME='NetXtreme BCM5755 Gigabit Ethernet PCI Express'
#NETMASK=''
#NETWORK=''
REMOTE_IPADDR=''
#STARTMODE='auto'
STARTMODE='auto'
BROADCAST=''
ETHTOOL_OPTIONS=''
IPADDR=''
NAME=''
NETWORK=''
USERCONTROL='no'
#USERCONTROL='no'
#PREFIXLEN='25'
ifconfig eth0 | grep "inet addr" | tr -d '[a-zBM:]' | awk '{ print "IPADDR="$1"\nNETMASK="$3"\n" }'