2011-04-25
- [電腦教室] 撰寫北群 B/C 教室再生龍還原 POSTRUN Script for OpenSUSE :
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" }'
Last modified 14 years ago
Last modified on Apr 27, 2011, 1:00:39 AM