Advertisement
Guest User

Untitled

a guest
Jan 2nd, 2012
113
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: AR0 switch driver attached.
  5. Atheros AR71xx hardware watchdog driver version 0.1.0
  6.  
  7. root@OpenWrt:/# ifconfig
  8. br-lan Link encap:Ethernet HWaddr 00:15:6D:C1:C8:BA
  9. inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
  10. UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
  11. RX packets:928 errors:0 dropped:0 overruns:0 frame:0
  12. TX packets:592 errors:0 dropped:0 overruns:0 carrier:0
  13. collisions:0 txqueuelen:0
  14. RX bytes:57627 (56.2 KiB) TX bytes:41210 (40.2 KiB)
  15.  
  16. eth0 Link encap:Ethernet HWaddr 00:15:6D:C1:C8:B9
  17. UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
  18. RX packets:0 errors:0 dropped:0 overruns:0 frame:0 << notice 0 received packets
  19. TX packets:36 errors:0 dropped:0 overruns:0 carrier:0
  20. collisions:0 txqueuelen:1000
  21. RX bytes:0 (0.0 B) TX bytes:14508 (14.1 KiB)
  22. Interrupt:4
  23.  
  24. eth1 Link encap:Ethernet HWaddr 00:15:6D:C1:C8:BA
  25. UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
  26. RX packets:940 errors:0 dropped:0 overruns:0 frame:0
  27. TX packets:592 errors:0 dropped:0 overruns:0 carrier:0
  28. collisions:0 txqueuelen:1000
  29. RX bytes:71339 (69.6 KiB) TX bytes:41210 (40.2 KiB)
  30. Interrupt:5
  31.  
  32. lo Link encap:Local Loopback
  33. inet addr:127.0.0.1 Mask:255.0.0.0
  34. UP LOOPBACK RUNNING MTU:16436 Metric:1
  35. RX packets:512 errors:0 dropped:0 overruns:0 frame:0
  36. TX packets:512 errors:0 dropped:0 overruns:0 carrier:0
  37. collisions:0 txqueuelen:0
  38. RX bytes:35840 (35.0 KiB) TX bytes:35840 (35.0 KiB)
  39.  
  40. root@OpenWrt:/# swconfig dev eth1 show
  41. Global attributes:
  42. enable_vlan: 1
  43. Port 0:
  44. pvid: 1
  45. Port 1:
  46. pvid: 1
  47. Port 2:
  48. pvid: 1
  49. Port 3:
  50. pvid: 1
  51. Port 4:
  52. pvid: 1
  53. Port 5:
  54. pvid: 0
  55. VLAN 1:
  56. vid: 1
  57. ports: 0 1 2 3 4
  58. root@OpenWrt:/# swconfig dev eth1 help
  59. switch0: eth1(Atheros AR8216), ports: 6 (cpu @ 0), vlans: 16 << Notice switch type.
  60. --switch
  61. Attribute 1 (int): enable_vlan (Enable VLAN mode)
  62. Attribute 2 (none): apply (Activate changes in the hardware)
  63. Attribute 3 (none): reset (Reset the switch)
  64. --vlan
  65. Attribute 1 (int): vid (VLAN ID (0-4094))
  66. Attribute 2 (ports): ports (VLAN port mapping)
  67. --port
  68. Attribute 1 (int): pvid (Primary VLAN ID)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement