Difference between revisions of "/etc/network/interfaces"
Jump to navigation
Jump to search
Rafahsolis (talk | contribs) |
Rafahsolis (talk | contribs) m (→Promisc Bridge) Tag: visualeditor |
||
| Line 1: | Line 1: | ||
<nowiki># This file describes the network interfaces available on your system | <nowiki># This file describes the network interfaces available on your system | ||
| + | # and how to activate them. For more information, see interfaces(5). | ||
| + | |||
| + | source /etc/network/interfaces.d/* | ||
| + | |||
| + | # The loopback network interface | ||
| + | auto lo | ||
| + | iface lo inet loopback | ||
| + | |||
| + | # The primary network interface | ||
| + | auto ens32 | ||
| + | iface ens32 inet static | ||
| + | address 20.1.40.109 | ||
| + | netmask 255.255.255.0 | ||
| + | gateaway 20.1.40.1 | ||
| + | dns-nameservers 20.1.40.23 | ||
| + | up route add -net 15.17.160.0 netmask 255.255.240.0 gw 20.1.40.1 | ||
| + | down route del -net 192.168.2.0 netmask 255.255.255.0 gw 192.168.2.1 | ||
| + | # post-up ip route add 15.17.160.0/20 via 20.1.40.1 dev ens33 # NOT WORKING | ||
| + | |||
| + | # The primary network interface | ||
| + | auto ens33 | ||
| + | iface ens33 inet dhcp | ||
| + | </nowiki> | ||
| + | |||
| + | == WF0006D3 == | ||
| + | <syntaxhighlight lang="text"> | ||
| + | # This file describes the network interfaces available on your system | ||
# and how to activate them. For more information, see interfaces(5). | # and how to activate them. For more information, see interfaces(5). | ||
| Line 5: | Line 32: | ||
# The loopback network interface | # The loopback network interface | ||
| − | auto lo | + | #auto lo |
| − | iface lo inet loopback | + | #iface lo inet loopback |
| + | |||
| + | auto eth0 | ||
| + | allow-hotplug eth0 | ||
| + | |||
| + | |||
| + | |||
| + | iface eth0 inet manual | ||
| + | |||
| + | auto br0 | ||
| + | iface br0 inet dhcp | ||
| + | bridge_ports eth0 | ||
| + | wpa-driver wired | ||
| + | wpa-conf /etc/wpa_supplicant/conf/WF0006D3.conf | ||
| − | # | + | # WF0017B1 Claudia |
| − | + | # bridge_hw D8:CB:8A:B8:95:86 | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | # | ||
| − | # | + | # WF0006D3 Rafa |
| − | + | bridge_hw ec:8e:b5:77:3e:e1 | |
| − | + | ||
| − | + | # WF001CBD Rafa (Lo tiene Javier Saez) | |
| − | + | # bridge_hw D8:CB:8A:B8:95:51 | |
| − | + | ||
| − | + | dns-nameservers 127.0.0.1 | |
| − | + | up route del -net 0.0.0.0 netmask 0.0.0.0 gw 15.17.160.1 | |
| − | + | post-up route add -net 20.1.43.0 netmask 255.255.255.0 gw 15.17.160.1 | |
| + | up route add -net 22.0.0.0 netmask 255.255.255.0 gw 15.17.160.1 | ||
| + | # gateaway 10.23.0.1 | ||
| − | + | </syntaxhighlight> | |
| − | |||
| − | |||
| − | |||
| − | auto Bridge | + | ==Promisc Bridge== |
| − | iface Bridge inet manual | + | <nowiki>auto eth4 |
| − | + | iface eth4 inet manual | |
| − | + | up ifconfig $IFACE 0.0.0.0 -multicast up | |
| − | + | down ifconfig $IFACE down | |
| − | + | ||
| − | + | auto eth5 | |
| − | + | iface eth5 inet manual | |
| − | + | up ifconfig $IFACE 0.0.0.0 -multicast up | |
| − | + | down ifconfig $IFACE down | |
| − | + | ||
| − | + | auto Bridge | |
| − | + | iface Bridge inet manual | |
| − | </nowiki> | + | pre-up ifconfig eth4 0.0.0.0 promisc up |
| + | pre-up ifconfig eth5 0.0.0.0 promisc up | ||
| + | post-down ifconfig eth4 -promisc up | ||
| + | post-down ifconfig eth5 -promisc up | ||
| + | up ifconfig $IFACE 0.0.0.0 -multicast up | ||
| + | down ifconfig $IFACE down | ||
| + | bridge_ports eth4 eth5 | ||
| + | bridge_stp off | ||
| + | bridge_fd 0 | ||
| + | bridge_ageing 0 | ||
| + | bridge_maxwait 0 | ||
| + | </nowiki> | ||
Latest revision as of 10:56, 20 November 2019
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto ens32
iface ens32 inet static
address 20.1.40.109
netmask 255.255.255.0
gateaway 20.1.40.1
dns-nameservers 20.1.40.23
up route add -net 15.17.160.0 netmask 255.255.240.0 gw 20.1.40.1
down route del -net 192.168.2.0 netmask 255.255.255.0 gw 192.168.2.1
# post-up ip route add 15.17.160.0/20 via 20.1.40.1 dev ens33 # NOT WORKING
# The primary network interface
auto ens33
iface ens33 inet dhcp
WF0006D3[edit]
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
#auto lo
#iface lo inet loopback
auto eth0
allow-hotplug eth0
iface eth0 inet manual
auto br0
iface br0 inet dhcp
bridge_ports eth0
wpa-driver wired
wpa-conf /etc/wpa_supplicant/conf/WF0006D3.conf
# WF0017B1 Claudia
# bridge_hw D8:CB:8A:B8:95:86
# WF0006D3 Rafa
bridge_hw ec:8e:b5:77:3e:e1
# WF001CBD Rafa (Lo tiene Javier Saez)
# bridge_hw D8:CB:8A:B8:95:51
dns-nameservers 127.0.0.1
up route del -net 0.0.0.0 netmask 0.0.0.0 gw 15.17.160.1
post-up route add -net 20.1.43.0 netmask 255.255.255.0 gw 15.17.160.1
up route add -net 22.0.0.0 netmask 255.255.255.0 gw 15.17.160.1
# gateaway 10.23.0.1
Promisc Bridge[edit]
auto eth4
iface eth4 inet manual
up ifconfig $IFACE 0.0.0.0 -multicast up
down ifconfig $IFACE down
auto eth5
iface eth5 inet manual
up ifconfig $IFACE 0.0.0.0 -multicast up
down ifconfig $IFACE down
auto Bridge
iface Bridge inet manual
pre-up ifconfig eth4 0.0.0.0 promisc up
pre-up ifconfig eth5 0.0.0.0 promisc up
post-down ifconfig eth4 -promisc up
post-down ifconfig eth5 -promisc up
up ifconfig $IFACE 0.0.0.0 -multicast up
down ifconfig $IFACE down
bridge_ports eth4 eth5
bridge_stp off
bridge_fd 0
bridge_ageing 0
bridge_maxwait 0