NoPaste

/etc/config/network

von fireburner

SNIPPET_TEXT:
  1. cat /etc/config/network
  2.  
  3. config interface 'loopback'
  4.         option ifname 'lo'
  5.         option proto 'static'
  6.         option ipaddr '127.0.0.1'
  7.         option netmask '255.0.0.0'
  8.  
  9. config globals 'globals'
  10.         option ula_prefix 'xxxx:xxxx:xxxx::/48'
  11.  
  12. config interface 'lan'
  13.         option type 'bridge'
  14.         option proto 'static'
  15.         option netmask '255.255.255.0'
  16.         option ipaddr '192.168.1.1'
  17.         option ip6assign '64'
  18.         option ifname 'eth0.1'
  19.  
  20. config interface 'wan'
  21.         option ifname 'eth0.2'
  22.         option proto 'dhcp'
  23.         option hostname 'Minitrue'
  24.         option peerdns '0'
  25.         option dns '194.150.168.168 84.200.70.40'
  26.  
  27. config interface 'wan6'
  28.         option ifname 'eth0.2'
  29.         option proto 'dhcpv6'
  30.  
  31. config switch
  32.         option name 'switch0'
  33.         option reset '1'
  34.         option enable_vlan '1'
  35.  
  36. config switch_vlan
  37.         option device 'switch0'
  38.         option vlan '1'
  39.         option vid '1'
  40.         option ports '0t 2 3t 4 5'
  41.  
  42. config switch_vlan
  43.         option device 'switch0'
  44.         option vlan '2'
  45.         option ports '0t 1'
  46.         option vid '2'
  47.  
  48. config interface 'guest'
  49.         option proto 'static'
  50.         option ipaddr '192.168.3.1'
  51.         option netmask '255.255.255.0'
  52.         option type 'bridge'
  53.         option delegate '0'
  54.         option ip6assign '64'
  55.         option ifname 'eth0.24 guest'
  56.  
  57. config interface 'vpn0'
  58.         option ifname 'tun0'
  59.         option proto 'none'
  60.         option auto '1'
  61.  
  62. config switch_vlan
  63.         option device 'switch0'
  64.         option vlan '3'
  65.         option vid '24'
  66.         option ports '0t 3t'

Quellcode

Hier kannst du den Code kopieren und ihn in deinen bevorzugten Editor einfügen. PASTEBIN_DOWNLOAD_SNIPPET_EXPLAIN