Advertisement
Guest User

config

a guest
Jun 7th, 2016
332
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.48 KB | None | 0 0
  1.  
  2. root@OpenWrt:~# cat /etc/config/network
  3.  
  4. config interface 'loopback'
  5. option ifname 'lo'
  6. option proto 'static'
  7. option ipaddr '127.0.0.1'
  8. option netmask '255.0.0.0'
  9.  
  10. config switch
  11. option name 'eth0'
  12. option reset '1'
  13. option enable_vlan '1'
  14.  
  15. config interface 'lan'
  16. option type 'bridge'
  17. option proto 'static'
  18. option netmask '255.255.255.0'
  19. option ifname 'eth0.1'
  20. option ipaddr '192.168.1.1'
  21.  
  22. config interface 'wan'
  23. option ifname 'nas0'
  24. option proto 'pppoe'
  25. option username 'xxxxxxx@h1dsl-flat'
  26. option password 'xxxxxxx'
  27.  
  28. config interface 'iptv'
  29. option type 'bridge'
  30. option proto 'none'
  31. option ifname 'eth0.2 nas1'
  32. option auto '1'
  33.  
  34. config adsl-device 'adsl'
  35. option fwannex 'b'
  36. option annex 'b2p'
  37.  
  38. config switch_vlan
  39. option device 'eth0'
  40. option vlan '1'
  41. option ports '2 3 4 5t'
  42. option vid '1'
  43.  
  44. config switch_vlan
  45. option device 'eth0'
  46. option vlan '200'
  47. option vid '2'
  48. option ports '1 5t'
  49.  
  50. config atm-bridge 'atm'
  51. option unit '0'
  52. option encaps 'llc'
  53. option payload 'bridged'
  54. option vci '33'
  55. option vpi '0'
  56.  
  57. config atm-bridge
  58. option unit '1'
  59. option atmdev '0'
  60. option encaps 'llc'
  61. option payload 'bridged'
  62. option vci '40'
  63. option vpi '0'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement