# Network adapter configuration # # modified 1997/12/21 02:53 (G D Rijhwani) # # 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. # site=`cat /etc/pcmcia/site` site=${site:-"default"} test "$display" && \ echo "Network opts ($ADDRESS)" > $display # Default metric so that direct (modem) dial-up routes will override METRIC=2 case "$ADDRESS" in *,0,*,*) # Transceiver selection, for cards that need it -- see 'man ifport' IF_PORT="" # Use BOOTP [y/n] BOOTP="n" # IP address IPADDR="192.168.1.123" # Netmask NETMASK="255.255.255.0" # Network address NETWORK="192.168.1.0" # Broadcast address BROADCAST="192.168.1.255" # Gateway address # GATEWAY="192.168.1.1" # Domain name DOMAIN="local.domain" # Hostsfile HOSTSFILE="/etc/hosts.default" # Nameserver #1 DNS_1="192.168.1.5" # Nameserver #2 DNS_2="192.168.1.1" # 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="" PPPGATE=192.168.1.1 PPPHOSTS="ppp0 ppp1" # Extra stuff to do after setting up the interface start_fn () { return } # Extra stuff to do before shutting down the interface stop_fn () { return } ;; *,1,*,*) case "$site" in 'site1') IF_PORT="" BOOTP="n" IPADDR="10.0.1.123" NETMASK="255.255.255.192" NETWORK="10.0.1.64" BROADCAST="10.0.1.127" GATEWAY="10.0.1.65" DOMAIN="site1.co.uk" HOSTSFILE="/etc/hosts.site1" DNS_1="10.0.1.66" DNS_2="" DNS_3="" MOUNTS="" IPX_FRAME="" IPX_NETNUM="" start_fn () { return } stop_fn () { return } ;; 'site2') IF_PORT="" BOOTP="n" IPADDR="192.168.13.123" NETMASK="255.255.255.0" NETWORK="192.168.13.0" BROADCAST="192.168.13.255" GATEWAY="192.168.13.250 192.168.13.240" DOMAIN="site2.co.uk" HOSTSFILE="/etc/hosts.site2" DNS_1="" DNS_2="" DNS_3="" MOUNTS="" IPX_FRAME="" IPX_NETNUM="" start_fn () { return } stop_fn () { return } ;; 'site3') IF_PORT="" BOOTP="n" IPADDR="10.0.2.123" NETMASK="255.255.255.224" NETWORK="10.0.2.96" BROADCAST="10.0.2.127" GATEWAY="10.0.2.97" DOMAIN="site3.co.uk" HOSTSFILE="/etc/hosts.site3" DNS_1="10.0.0.2" DNS_2="10.0.0.24" DNS_3="" MOUNTS="" IPX_FRAME="" IPX_NETNUM="" start_fn () { return } stop_fn () { return } ;; esac ;; esac test "$display" && \ { echo $IPADDR > $display echo $NETWORK/$NETMASK > $display echo $GATEWAY > $display }