Advertisement
Guest User

Untitled

a guest
Jan 2nd, 2012
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.54 KB | None | 0 0
  1.  
  2. eth0: Atheros AG71xx at 0xb9000000, irq 4
  3. eth1: Atheros AG71xx at 0xba000000, irq 5
  4. eth1: AR8316 switch driver attached.
  5. Atheros AR71xx hardware watchdog driver version 0.1.0
  6.  
  7.  
  8. root@OpenWrt:/# ifconfig
  9. br-lan Link encap:Ethernet HWaddr 00:15:6D:C1:C8:BA
  10. inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
  11. UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
  12. RX packets:1489 errors:0 dropped:0 overruns:0 frame:0
  13. TX packets:1356 errors:0 dropped:0 overruns:0 carrier:0
  14. collisions:0 txqueuelen:0
  15. RX bytes:136342 (133.1 KiB) TX bytes:197599 (192.9 KiB)
  16.  
  17. eth0 Link encap:Ethernet HWaddr 00:15:6D:C1:C8:B9
  18. inet addr:46.162.196.150 Bcast:46.162.199.255 Mask:255.255.252.0
  19. UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
  20. RX packets:860 errors:0 dropped:0 overruns:0 frame:0
  21. TX packets:942 errors:0 dropped:0 overruns:0 carrier:0
  22. collisions:0 txqueuelen:1000
  23. RX bytes:189616 (185.1 KiB) TX bytes:132784 (129.6 KiB)
  24. Interrupt:4
  25.  
  26. eth1 Link encap:Ethernet HWaddr 00:15:6D:C1:C8:BA
  27. UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
  28. RX packets:1489 errors:0 dropped:0 overruns:0 frame:0
  29. TX packets:1356 errors:0 dropped:0 overruns:0 carrier:0
  30. collisions:0 txqueuelen:1000
  31. RX bytes:157188 (153.5 KiB) TX bytes:197599 (192.9 KiB)
  32. Interrupt:5
  33.  
  34. lo Link encap:Local Loopback
  35. inet addr:127.0.0.1 Mask:255.0.0.0
  36. UP LOOPBACK RUNNING MTU:16436 Metric:1
  37. RX packets:16 errors:0 dropped:0 overruns:0 frame:0
  38. TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
  39. collisions:0 txqueuelen:0
  40. RX bytes:1428 (1.3 KiB) TX bytes:1428 (1.3 KiB)
  41.  
  42. root@OpenWrt:/# swconfig dev eth1 show
  43. Global attributes:
  44. enable_vlan: 1
  45. Port 0:
  46. pvid: 1
  47. Port 1:
  48. pvid: 1
  49. Port 2:
  50. pvid: 1
  51. Port 3:
  52. pvid: 1
  53. Port 4:
  54. pvid: 1
  55. VLAN 1:
  56. vid: 1
  57. ports: 0 1 2 3 4
  58.  
  59. root@OpenWrt:/# swconfig dev eth1 help
  60. switch0: eth1(Atheros AR8316), ports: 5 (cpu @ 0), vlans: 128
  61. --switch
  62. Attribute 1 (int): enable_vlan (Enable VLAN mode)
  63. Attribute 2 (none): apply (Activate changes in the hardware)
  64. Attribute 3 (none): reset (Reset the switch)
  65. --vlan
  66. Attribute 1 (int): vid (VLAN ID (0-4094))
  67. Attribute 2 (ports): ports (VLAN port mapping)
  68. --port
  69. Attribute 1 (int): pvid (Primary VLAN ID)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement