Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jan 2nd, 2012  |  syntax: None  |  size: 2.54 KB  |  hits: 28  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. eth0: Atheros AG71xx at 0xb9000000, irq 4
  2. eth1: Atheros AG71xx at 0xba000000, irq 5
  3. eth1: AR8316 switch driver attached.
  4. Atheros AR71xx hardware watchdog driver version 0.1.0
  5.  
  6. root@OpenWrt:/# ifconfig
  7. br-lan    Link encap:Ethernet  HWaddr 00:15:6D:C1:C8:BA
  8.           inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
  9.           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  10.           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  11.           TX packets:19 errors:0 dropped:0 overruns:0 carrier:0
  12.           collisions:0 txqueuelen:0
  13.           RX bytes:0 (0.0 B)  TX bytes:1158 (1.1 KiB)
  14.  
  15. eth0      Link encap:Ethernet  HWaddr 00:15:6D:C1:C8:B9
  16.           inet addr:46.162.196.150  Bcast:46.162.199.255  Mask:255.255.252.0
  17.           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  18.           RX packets:1194 errors:0 dropped:0 overruns:0 frame:0
  19.           TX packets:1076 errors:0 dropped:0 overruns:0 carrier:0
  20.           collisions:0 txqueuelen:1000
  21.           RX bytes:125553 (122.6 KiB)  TX bytes:133136 (130.0 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:0 errors:0 dropped:0 overruns:0 frame:0    << notice 0 received packets
  27.           TX packets:19 errors:0 dropped:0 overruns:0 carrier:0
  28.           collisions:0 txqueuelen:1000
  29.           RX bytes:0 (0.0 B)  TX bytes:1158 (1.1 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:317 errors:0 dropped:0 overruns:0 frame:0
  36.           TX packets:317 errors:0 dropped:0 overruns:0 carrier:0
  37.           collisions:0 txqueuelen:0
  38.           RX bytes:22472 (21.9 KiB)  TX bytes:22472 (21.9 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. VLAN 1:
  54.         vid: 1
  55.         ports: 0 1 2 3 4
  56. root@OpenWrt:/# swconfig dev eth1 help
  57. switch0: eth1(Atheros AR8316), ports: 5 (cpu @ 0), vlans: 128
  58.      --switch
  59.         Attribute 1 (int): enable_vlan (Enable VLAN mode)
  60.         Attribute 2 (none): apply (Activate changes in the hardware)
  61.         Attribute 3 (none): reset (Reset the switch)
  62.      --vlan
  63.         Attribute 1 (int): vid (VLAN ID (0-4094))
  64.         Attribute 2 (ports): ports (VLAN port mapping)
  65.      --port
  66.         Attribute 1 (int): pvid (Primary VLAN ID)