OSDN Git Service

2013.10.24
[uclinux-h8/uClinux-dist.git] / freeswan / testing / baseconfigs / west / etc / network / interfaces
1 ######################################################################
2 # /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
3 #
4 #
5 # !!!NOTE!!! THIS IS AN ALPHA RELEASE! DO NOT RELY ON IT!
6 #
7 # Consider this the first draft of what I think the proper way to
8 # configure interfaces is. It makes use of programs like ifconfig(8)
9 # and dhcpcd(8), and can be called from /etc/init.d/networking,
10 # /etc/pcmcia/network or the command line. It can configure and
11 # deconfigure interfaces. In controlled environments it even works.
12 # It's *very* subject to change, however. Some of the compulsory
13 # options will become optional. Some of the optional ones might
14 # become compulsory. Syntax might change. Features might disappear.
15 # Bugs might disappear. The examples below are reasonably likely
16 # to remain more or less correct. Maybe.
17 #                                         -- ajt@debian.org
18 #
19 #
20 # A "#" character in the very first column makes the rest of the line
21 # be ignored. Blank lines are ignored. Lines may be indented freely.
22 # A "\" character at the very end of the line indicates the next line
23 # should be treated as a continuation of the current one.
24 #
25 # The "noauto", "up", and "down" options are valid for all interfaces.
26 # "up" and "down" may be specified multiple times, all other options
27 # may only be specified once.
28 ######################################################################
29
30 # We always want the loopback interface. Whether we want ifup/ifdown to
31 # know about is another matter, perhaps.
32 #
33  iface lo inet loopback
34
35 # An example ethernet card setup: (broadcast and gateway are optional)
36 #
37 iface eth0 inet static
38      address 192.0.1.254
39      network 192.0.1.0
40      netmask 255.255.255.0
41      broadcast 192.0.1.255
42
43 iface eth1 inet static
44      address 192.1.2.45
45      network 192.1.2.0
46      netmask 255.255.255.0
47      broadcast 192.1.2.255
48         gateway 192.1.2.254
49         up route add -net 192.0.2.0 netmask 255.255.255.0 gw 192.1.2.23
50
51 # A more complicated ethernet setup: (the "up" lines are executed verbatim
52 # when the interface is brought up, the "down" lines when it's brought down)
53 #
54 # iface eth0 inet static
55 #     address 192.168.1.42
56 #     network 192.168.1.0
57 #     netmask 255.255.255.128
58 #     broadcast 192.168.1.0
59 #     up route add -net 192.168.1.128 netmask 255.255.255.128 gw 192.168.1.2
60 #     up route add default gw 192.168.1.200
61 #     down route del default gw 192.168.1.200
62 #     down route del -net 192.168.1.128 netmask 255.255.255.128 gw 192.168.1.2
63
64 # An ethernet DHCP client: (using the dhcpcd .deb)
65 #
66 # iface eth0 inet dhcp
67
68 # A more complicated DHCP client: (hostname and leasetime match the options
69 # in the dhcpcd manpage)
70 #
71 # iface eth0 inet dhcp
72 #     hostname charisma
73 #     leasetime 3600
74
75 # A PCMCIA ethernet DHCP client:
76 #
77 # iface eth0 inet dhcp
78 #     noauto
79 #
80 # (note, this won't work unless you specifically change the file
81 # /etc/pcmcia/network to look more like:
82 #
83 #     if [ -r ./shared ] ; then . ./shared ; else . /etc/pcmcia/shared ; fi
84 #     get_info $DEVICE
85 #     case "$ACTION" in
86 #         'start')
87 #             /sbin/ifup -s "$SCHEME" $DEVICE
88 #             ;;
89 #         'stop')
90 #             /sbin/ifdown -s "$SCHEME" $DEVICE
91 #             ;;
92 #     esac
93 #     exit 0
94 #
95 # This is not at all supported at present. You have been warned.)
96
97 # An ethernet bootp client: (bootfile, server and hwaddr options are also
98 # available. See the bootpc manpage)
99 #
100 # iface eth0 inet bootp
101