File: interfaces

package info (click to toggle)
freeswan 2.04-11.3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 23,340 kB
  • ctags: 12,260
  • sloc: ansic: 72,499; sh: 14,497; asm: 3,312; perl: 3,153; xml: 2,961; makefile: 2,702; tcl: 620; exp: 612; pascal: 228; sed: 206; awk: 124; lisp: 3
file content (75 lines) | stat: -rw-r--r-- 2,817 bytes parent folder | download | duplicates (5)
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
70
71
72
73
74
75
######################################################################
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
#
#
# !!!NOTE!!! THIS IS AN ALPHA RELEASE! DO NOT RELY ON IT!
#
# Consider this the first draft of what I think the proper way to
# configure interfaces is. It makes use of programs like ifconfig(8)
# and dhcpcd(8), and can be called from /etc/init.d/networking,
# /etc/pcmcia/network or the command line. It can configure and
# deconfigure interfaces. In controlled environments it even works.
# It's *very* subject to change, however. Some of the compulsory
# options will become optional. Some of the optional ones might
# become compulsory. Syntax might change. Features might disappear.
# Bugs might disappear. The examples below are reasonably likely
# to remain more or less correct. Maybe.
#                                         -- ajt@debian.org
#
#
# A "#" character in the very first column makes the rest of the line
# be ignored. Blank lines are ignored. Lines may be indented freely.
# A "\" character at the very end of the line indicates the next line
# should be treated as a continuation of the current one.
#
# The "noauto", "up", and "down" options are valid for all interfaces.
# "up" and "down" may be specified multiple times, all other options
# may only be specified once.
######################################################################

# We always want the loopback interface. Whether we want ifup/ifdown to
# know about is another matter, perhaps.
#
 iface lo inet loopback

# An example ethernet card setup: (broadcast and gateway are optional)
#
iface eth0 inet static
     address 192.1.2.254
     network 192.1.2.0
     netmask 255.255.255.0
     broadcast 192.1.2.255
     up route add -net 192.0.1.0 netmask 255.255.255.0 gw 192.1.2.45
     up route add -net 192.0.2.0 netmask 255.255.255.0 gw 192.1.2.23

# A more complicated ethernet setup: (the "up" lines are executed verbatim
# when the interface is brought up, the "down" lines when it's brought down)
#
# iface eth0 inet static
#     address 192.168.1.42
#     network 192.168.1.0
#     netmask 255.255.255.128
#     broadcast 192.168.1.0
#     up route add -net 192.168.1.128 netmask 255.255.255.128 gw 192.168.1.2
#     up route add default gw 192.168.1.200
#     down route del default gw 192.168.1.200
#     down route del -net 192.168.1.128 netmask 255.255.255.128 gw 192.168.1.2

# An ethernet DHCP client: (using the dhcpcd .deb)
#
# iface eth0 inet dhcp

# A more complicated DHCP client: (hostname and leasetime match the options
# in the dhcpcd manpage)
#
# iface eth0 inet dhcp
#     hostname charisma
#     leasetime 3600

# A PCMCIA ethernet DHCP client:
#
# iface eth0 inet dhcp
#     noauto
#
# (note, this won't work unless you specifically change the file