# Network adapter configuration # # The address format is "scheme,socket,instance,hwaddr". # # Note: the "network address" here is NOT the same as the IP address. # See the Networking HOWTO. In short, the network address is the IP # address masked by the netmask. # echo "$1 $2 $3 $4" > /tmp/network.args set >> /tmp/network.args printenv >> /tmp/network.args case "$ADDRESS" in *,*,*,*) case "$DRIVER" in ray_cs) # Transceiver selection, for cards that need it -- see 'man ifport' IF_PORT="" # Use BOOTP [y/n] BOOTP="n" # IP address IPADDR="192.168.2.4" # Netmask NETMASK="255.255.255.0" # Network address NETWORK="192.168.2.0" # Broadcast address BROADCAST="192.168.2.255" # Gateway address GATEWAY="192.168.2.1" # Domain name DOMAIN="nwptn1.va.home.com" # Nameserver #1 DNS_1="24.2.48.33" # Nameserver #2 DNS_2="24.2.48.34" # Nameserver #3 DNS_3="" # NFS mounts, should be listed in /etc/fstab MOUNTS="" # For IPX interfaces, the frame type (i.e., 802.2) IPX_FRAME="" # For IPX interfaces, the network number IPX_NETNUM="" # Extra stuff to do after setting up the interface start_fn () { /etc/sysconfig/network-scripts/ifdown dummy0; mv /etc/hosts /etc/hosts.save; sed -e '/myhostname/s/^.*$/192.168.2.4 myhostname myhostname.home.net/' < /etc/hosts.save > /etc/hosts; sed -e '/ATHOMEPOPSERVER/s/ATHOMEPOPSERVER/mail.nwptn1.va.home.com/' < /root/master.fetchmailrc > /root/fetchmailrc; /usr/bin/fetchmail; return; } ;; 3c589_cs) # Transceiver selection, for cards that need it -- see 'man ifport' IF_PORT="" # Use BOOTP [y/n] BOOTP="n" # IP address IPADDR="129.57.168.33" # Netmask NETMASK="255.255.252.0" # Network address NETWORK="129.57.168.0" # Broadcast address BROADCAST="129.57.171.255" # Gateway address GATEWAY="129.57.168.1" # Domain name DOMAIN="jlab.org" # Nameserver #1 DNS_1="129.57.32.100" # Nameserver #2 DNS_2="129.57.32.101" # Nameserver #3 DNS_3="" # NFS mounts, should be listed in /etc/fstab MOUNTS="" # For IPX interfaces, the frame type (i.e., 802.2) IPX_FRAME="" # For IPX interfaces, the network number IPX_NETNUM="" # Extra stuff to do after setting up the interface start_fn () { mv /etc/hosts /etc/hosts.save; sed -e '/myhostname/s/^.*$/129.57.168.33 myhostname myhostname.home.net/' < /etc/hosts.save > /etc/hosts; /etc/sysconfig/network-scripts/ifdown dummy0; sed -e '/ATHOMEPOPSERVER/s/ATHOMEPOPSERVER/netmail.home.com/' < /root/master.fetchmailrc > /root/fetchmailrc; /usr/bin/fetchmail; return; } ;; esac # Extra stuff to do before shutting down the interface stop_fn () { /etc/sysconfig/network-scripts/ifup dummy0; killall fetchmail; return; } ;; esac