Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- eth0: Atheros AG71xx at 0xb9000000, irq 4
- eth1: Atheros AG71xx at 0xba000000, irq 5
- eth1: AR0 switch driver attached.
- Atheros AR71xx hardware watchdog driver version 0.1.0
- root@OpenWrt:/# ifconfig
- br-lan Link encap:Ethernet HWaddr 00:15:6D:C1:C8:BA
- inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
- UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
- RX packets:928 errors:0 dropped:0 overruns:0 frame:0
- TX packets:592 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:0
- RX bytes:57627 (56.2 KiB) TX bytes:41210 (40.2 KiB)
- eth0 Link encap:Ethernet HWaddr 00:15:6D:C1:C8:B9
- UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
- RX packets:0 errors:0 dropped:0 overruns:0 frame:0 << notice 0 received packets
- TX packets:36 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:1000
- RX bytes:0 (0.0 B) TX bytes:14508 (14.1 KiB)
- Interrupt:4
- eth1 Link encap:Ethernet HWaddr 00:15:6D:C1:C8:BA
- UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
- RX packets:940 errors:0 dropped:0 overruns:0 frame:0
- TX packets:592 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:1000
- RX bytes:71339 (69.6 KiB) TX bytes:41210 (40.2 KiB)
- Interrupt:5
- lo Link encap:Local Loopback
- inet addr:127.0.0.1 Mask:255.0.0.0
- UP LOOPBACK RUNNING MTU:16436 Metric:1
- RX packets:512 errors:0 dropped:0 overruns:0 frame:0
- TX packets:512 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:0
- RX bytes:35840 (35.0 KiB) TX bytes:35840 (35.0 KiB)
- root@OpenWrt:/# swconfig dev eth1 show
- Global attributes:
- enable_vlan: 1
- Port 0:
- pvid: 1
- Port 1:
- pvid: 1
- Port 2:
- pvid: 1
- Port 3:
- pvid: 1
- Port 4:
- pvid: 1
- Port 5:
- pvid: 0
- VLAN 1:
- vid: 1
- ports: 0 1 2 3 4
- root@OpenWrt:/# swconfig dev eth1 help
- switch0: eth1(Atheros AR8216), ports: 6 (cpu @ 0), vlans: 16 << Notice switch type.
- --switch
- Attribute 1 (int): enable_vlan (Enable VLAN mode)
- Attribute 2 (none): apply (Activate changes in the hardware)
- Attribute 3 (none): reset (Reset the switch)
- --vlan
- Attribute 1 (int): vid (VLAN ID (0-4094))
- Attribute 2 (ports): ports (VLAN port mapping)
- --port
- Attribute 1 (int): pvid (Primary VLAN ID)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement