Skip to content

Instantly share code, notes, and snippets.

@csamsel
Last active September 10, 2019 20:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save csamsel/9ad81a0fcddbac966c95caf5567a2482 to your computer and use it in GitHub Desktop.
Save csamsel/9ad81a0fcddbac966c95caf5567a2482 to your computer and use it in GitHub Desktop.
/etc/conf.d/net NetCologne/NetAachen PPPoE configuration for Draytek VigorNIC
# Gentoo network configuration for Draytek VigorNIC 132 in Bridge Mode for NetCologne / NetAachen
# eth0 = VigorNIC, eth1 = physical NIC to internal network
#
# 192.168.2.0/24 default VLAN internal network
# 192.168.12.0/24 VLAN12 guest network
# 192.168.20.0/24 VLAN20 IOT network
# 192.168.1.1 VigorNIC webinterface
#
# use dhcpcd for ppp0 to get a prefix delegation (see other gists)
# use radvd to announce IPv6 configuration to internal network (see other gists)
modules="tuntap ethtool pppoe arping dhcpcd iproute2 !ip6rd !wpa_supplicant !iwconfig !ssidnet !apipa !dhclient !pump !bond !bridge"
#LAN
config_eth1="192.168.2.1/24"
vlans_eth1="12 20"
mtu_eth1="9000" # jumbo frames for 10 gbit network
config_eth1_12="192.168.12.1/24"
config_eth1_20="192.168.20.1/24"
dns_domain_lo="local.lan"
#WAN
config_eth0="192.168.1.2/24"
rc_net_ppp0_need="net.eth0"
#NetAachen
vlans_eth0="10 20"
config_eth0_10="null" # VLAN10 Internet PPPoE
config_eth0_20="dhcp" # VLAN20 VOIP
dhcpcd_eth0_20="--nogateway" # dont use default gateway from SIP VLAN
config_ppp0="ppp"
link_ppp0="eth0.10"
plugins_ppp0="pppoe"
pppd_ppp0="
defaultroute
+ipv6 ipv6cp-use-persistent" # allows fixxed ipv6 address
username_ppp0="nc-XXXX@netaachen.de"
password_ppp0="XXXXXXX"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment