File: network.opts

package info (click to toggle)
netenv 0.82-10
  • links: PTS
  • area: main
  • in suites: potato
  • size: 160 kB
  • ctags: 40
  • sloc: sh: 337; ansic: 136; makefile: 52
file content (69 lines) | stat: -rw-r--r-- 2,049 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# ident network.opts Time-stamp: <98/05/03 16:55:18 bav> -*- sh -*-
#
# 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.
#
# Caveat:
#
# This is basically the file network.opts as it comes with the
# Debian-Package pcmcia-cs 3.0.0-3. I have made one change to make it
# work with the package netenv. All changes can be done by netenv. See
# also comments below. If you want to use it, copy it to /etc/pcmcia.
#
# bav@rw.sni.de 98/04/05

case "$ADDRESS" in
*,*,*,*)
    # Transceiver selection, for cards that need it -- see 'man ifport'
    IF_PORT=""
    # Use BOOTP [y/n]
    BOOTP="n"
    # Use DHCLIENT [y/n] (in the dhcp-client-beta package.)
    DHCLIENT="n"
    # IP address
    IPADDR=""
    # Netmask
    NETMASK="255.255.255.0"
    # Network address
    NETWORK="1.2.0.0"
    # Broadcast address
    BROADCAST="1.2.255.255"
    # Gateway address
    GATEWAY="1.2.0.1"
    # Domain name
    DOMAIN="stanford.edu"
    # Nameserver #1
    DNS_1=""
    # Nameserver #2
    DNS_2=""
    # 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 ()
    {
	# If your PCMCIA card is your only network connection, then
	# uncommenting the next line might be a good idea.  It unmounts
	# all NFS filesystems before the network card is halted.
	#umount -at nfs 
	return;
    }
    # Extra stuff to do before shutting down the interface
    stop_fn () { return; }
    ;;
esac

# For those, who want to use the netenv-Package, the file containing
# the network-setup has to be sourced. No problem, if there is no file 
# /etc/netenv/netenv.
if [ -r /etc/netenv/netenv ]; then . /etc/netenv/netenv; fi