Last active
December 15, 2017 22:54
-
-
Save csamsel/6fe0fb671bfd18847b9dd413caaf2c7b to your computer and use it in GitHub Desktop.
Gentoo network configuration for Draytek VigorNIC 132 in Bridge Mode for Deutsche Telekom Entertain (with OpenVPN tap device)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Gentoo network configuration for Draytek VigorNIC 132 in Bridge Mode for Deutsche Telekom Entertain (with OpenVPN tap device) | |
# eth0 = VigorNIC, eth1 = unused (VM Network), eth2 = physical NIC to internal network | |
# tap0 = OpenVPN device, br0 = bridge for OpenVPN | |
# | |
# 192.168.2.0/24 internal network | |
# 192.168.200.0/24 VM network | |
# 192.168.1.1 VigorNIC webinterface | |
# | |
# create symlinks net.eth0, net.eth1, net.eth2, net.br0, net.ppp0, net.tap0 | |
# | |
# use dhcpcd for ppp0 to get a prefix delegation | |
# use radvd to announce IPv6 configuration to internal network | |
# use igmpproxy for IPTV | |
modules="tuntap ethtool bridge arping iproute2 pppoe !ip6rd !wpa_supplicant !iwconfig !ssidnet !apipa dhcpcd !pump !dhclient" | |
# only dhcpcd supports the classless static routes. dhcpcd 7.0 didnt work for me, used 6.11.5 | |
depend_br0() { | |
need net.eth2 net.tap0 | |
} | |
tuntap_tap0="tap" | |
config_tap0="null" | |
mac_tap0="fe:86:fe:45:ca:fe" | |
config_eth2="null" | |
config_br0="192.168.2.1/24" | |
bridge_br0="eth2 tap0" | |
bridge_forward_delay_br0=1500 | |
bridge_hello_time_br0=200 | |
bridge_stp_state_br0=1 | |
config_eth1="192.168.200.1/24" | |
config_eth0="192.168.1.2/24" | |
rc_net_ppp0_need="net.eth0" | |
vlans_eth0="7 8" | |
config_eth0_7="null" # VLAN7 Internet | |
config_eth0_8="dhcp" # VLAN8 IPTV | |
config_ppp0="ppp" | |
link_ppp0="eth0.7" | |
plugins_ppp0="pppoe" | |
username_ppp0="[email protected]" | |
password_ppp0="XXXXXXXXX" | |
pppd_ppp0=" | |
defaultroute | |
+ipv6" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment