Advertisement
Guest User

Untitled

a guest
Sep 30th, 2016
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. vance@zs93kvi:~$ cat /etc/network/interfaces
  2. # This file describes the network interfaces available on your system
  3. # and how to activate them. For more information, see interfaces(5).
  4.  
  5. source /etc/network/interfaces.d/*
  6.  
  7. auto lo
  8. iface lo inet loopback
  9.  
  10. auto enc120.508
  11. iface enc120.508 inet static
  12. address 9.12.23.180
  13. netmask 255.255.255.0
  14. network 9.12.23.0
  15. broadcast 9.12.23.255
  16. gateway 9.12.23.1
  17. vlan-raw-device enc120
  18.  
  19. auto enc180.1295
  20. iface en180.1295 inet static
  21. address 10.20.95.18
  22. netmask 255.255.255.0
  23. network 10.20.95.0
  24. broadcast 10.20.95.255
  25. vlan-raw-device enc180
  26. up ip route add 10.0.0.0/8 via 10.20.95.254 || true
  27.  
  28. auto enc180.1299
  29. iface en180.1299 inet static
  30. address 10.20.102.18
  31. netmask 255.255.255.0
  32. network 10.20.102.0
  33. broadcast 10.20.102.255
  34. vlan-raw-device enc180
  35.  
  36. vance@zs93kvi:~$ cat /run/network/ifstate
  37. lo=lo
  38. enc120.508=enc120.508
  39.  
  40. vance@zs93kvi:~$ sudo cat /proc/net/vlan/config
  41. VLAN Dev name | VLAN ID
  42. Name-Type: VLAN_NAME_TYPE_RAW_PLUS_VID_NO_PAD
  43. enc120.508 | 508 | enc120
  44. enc180.1295 | 1295 | enc180
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement