-
-
Save csamsel/9ad81a0fcddbac966c95caf5567a2482 to your computer and use it in GitHub Desktop.
/etc/conf.d/net NetCologne/NetAachen PPPoE configuration for Draytek VigorNIC
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 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="[email protected]" | |
password_ppp0="XXXXXXX" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment