Debian ve Ubuntu linux dağıtımında interface dosyasına bir örnek;
# cat interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
auto br0 eth0 eth1 eth2 eth3
iface eth0 manual
mtu 9212
iface eth1 manual
mtu 9212
iface eth2 manual
mtu 9212
iface eth3 manual
mtu 9212
iface br0 inet static
bridge_ports eth0 eth1 eth2
bridge_fd 0
bridge_hello 2
bridge_maxage 12
bridge_stp on
mtu 9212
address 172.16.0.44
netmask 255.255.255.0
network 172.16.0
broadcast 172.16.0.255
gateway 172.16.0.254
dns-nameservers 127.0.0.1
dns-search localdomain
auto tap0
iface tap0 inet static
address 10.1.0.254
netmask 255.255.255.0
tunctl_user uml-net
auto vmbr0
iface vmbr0 inet static
address 10.0.254.154
netmask 255.255.255.0
tunctl_user uml-net
mtu 16362
auto vlan2716
iface vlan2716 inet ppp
vlan-raw-device eth3
pre-up /sbin/ifconfig vlan2716 up
post-down /sbin/ifconfig vlan2716 down
provider dsl-provider
# cat interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
auto br0 eth0 eth1 eth2 eth3
iface eth0 manual
mtu 9212
iface eth1 manual
mtu 9212
iface eth2 manual
mtu 9212
iface eth3 manual
mtu 9212
iface br0 inet static
bridge_ports eth0 eth1 eth2
bridge_fd 0
bridge_hello 2
bridge_maxage 12
bridge_stp on
mtu 9212
address 172.16.0.44
netmask 255.255.255.0
network 172.16.0
broadcast 172.16.0.255
gateway 172.16.0.254
dns-nameservers 127.0.0.1
dns-search localdomain
auto tap0
iface tap0 inet static
address 10.1.0.254
netmask 255.255.255.0
tunctl_user uml-net
auto vmbr0
iface vmbr0 inet static
address 10.0.254.154
netmask 255.255.255.0
tunctl_user uml-net
mtu 16362
auto vlan2716
iface vlan2716 inet ppp
vlan-raw-device eth3
pre-up /sbin/ifconfig vlan2716 up
post-down /sbin/ifconfig vlan2716 down
provider dsl-provider
Yorumlar
Yorum Gönder