/etc/config/network
von fireburner- SNIPPET_TEXT:
-
- cat /etc/config/network
- config interface 'loopback'
- option ifname 'lo'
- option proto 'static'
- option ipaddr '127.0.0.1'
- option netmask '255.0.0.0'
- config globals 'globals'
- option ula_prefix 'xxxx:xxxx:xxxx::/48'
- config interface 'lan'
- option type 'bridge'
- option proto 'static'
- option netmask '255.255.255.0'
- option ipaddr '192.168.1.1'
- option ip6assign '64'
- option ifname 'eth0.1'
- config interface 'wan'
- option ifname 'eth0.2'
- option proto 'dhcp'
- option hostname 'Minitrue'
- option peerdns '0'
- option dns '194.150.168.168 84.200.70.40'
- config interface 'wan6'
- option ifname 'eth0.2'
- option proto 'dhcpv6'
- config switch
- option name 'switch0'
- option reset '1'
- option enable_vlan '1'
- config switch_vlan
- option device 'switch0'
- option vlan '1'
- option vid '1'
- option ports '0t 2 3t 4 5'
- config switch_vlan
- option device 'switch0'
- option vlan '2'
- option ports '0t 1'
- option vid '2'
- config interface 'guest'
- option proto 'static'
- option ipaddr '192.168.3.1'
- option netmask '255.255.255.0'
- option type 'bridge'
- option delegate '0'
- option ip6assign '64'
- option ifname 'eth0.24 guest'
- config interface 'vpn0'
- option ifname 'tun0'
- option proto 'none'
- option auto '1'
- config switch_vlan
- option device 'switch0'
- option vlan '3'
- option vid '24'
- option ports '0t 3t'
Quellcode
Hier kannst du den Code kopieren und ihn in deinen bevorzugten Editor einfügen. PASTEBIN_DOWNLOAD_SNIPPET_EXPLAIN