Skip to content

Instantly share code, notes, and snippets.

@Grommish
Created March 10, 2021 11:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Grommish/f34681b287f4a53a864cdbf2548e02d1 to your computer and use it in GitHub Desktop.
Save Grommish/f34681b287f4a53a864cdbf2548e02d1 to your computer and use it in GitHub Desktop.
root@OpenWrt:/# ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:56 errors:0 dropped:0 overruns:0 frame:0
TX packets:56 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4368 (4.2 KiB) TX bytes:4368 (4.2 KiB)
root@OpenWrt:/# vi /etc/config/network
root@OpenWrt:/# service network restart
root@OpenWrt:/# [ 96.840323] mtk_soc_eth 1e100000.ethernet dsa: configuring for fixed/rgmii link mode
[ 96.856493] mtk_soc_eth 1e100000.ethernet dsa: Link is Up - 1Gbps/Full - flow control rx/tx
[ 96.858809] device dsa entered promiscuous mode
[ 96.882875] mt7530 mdio-bus:1f eth1: configuring for phy/gmii link mode
[ 96.897316] 8021q: adding VLAN 0 to HW filter on device eth1
[ 96.912086] IPv6: ADDRCONF(NETDEV_CHANGE): dsa: link becomes ready
[ 96.926492] br-lan: port 1(eth1) entered blocking state
[ 96.937063] br-lan: port 1(eth1) entered disabled state
[ 96.948509] device eth1 entered promiscuous mode
[ 96.975975] mt7530 mdio-bus:1f eth2: configuring for phy/gmii link mode
[ 96.989943] 8021q: adding VLAN 0 to HW filter on device eth2
[ 97.004656] br-lan: port 2(eth2) entered blocking state
[ 97.015136] br-lan: port 2(eth2) entered disabled state
[ 97.026902] device eth2 entered promiscuous mode
[ 97.047228] mt7530 mdio-bus:1f eth3: configuring for phy/gmii link mode
[ 97.061098] 8021q: adding VLAN 0 to HW filter on device eth3
[ 97.076155] br-lan: port 3(eth3) entered blocking state
[ 97.086705] br-lan: port 3(eth3) entered disabled state
[ 97.098353] device eth3 entered promiscuous mode
[ 97.117510] mt7530 mdio-bus:1f eth4: configuring for phy/gmii link mode
[ 97.131382] 8021q: adding VLAN 0 to HW filter on device eth4
[ 97.146323] br-lan: port 4(eth4) entered blocking state
[ 97.156962] br-lan: port 4(eth4) entered disabled state
[ 97.168759] device eth4 entered promiscuous mode
[ 97.321848] mt7530 mdio-bus:1f eth0: configuring for phy/gmii link mode
[ 97.335851] 8021q: adding VLAN 0 to HW filter on device eth0
[ 101.096006] mt7530 mdio-bus:1f eth2: Link is Up - 1Gbps/Full - flow control rx/tx
[ 101.111000] br-lan: port 2(eth2) entered blocking state
[ 101.121448] br-lan: port 2(eth2) entered forwarding state
[ 101.133255] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[ 101.448020] mt7530 mdio-bus:1f eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[ 101.463054] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
ifconfig
br-lan Link encap:Ethernet HWaddr 74:AC:B9:
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fdde:1a9c:3984::1/60 Scope:Global
inet6 addr: fe80::76ac:b9ff:feeb:4376/64 Scope:Link
inet6 addr: fd42:bcc8:69d1:4::1/62 Scope:Global
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:960 errors:0 dropped:0 overruns:0 frame:0
TX packets:220 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:104610 (102.1 KiB) TX bytes:158257 (154.5 KiB)
dsa Link encap:Ethernet HWaddr 74:AC:B9:
inet6 addr: fe80::76ac:b9ff:feeb:4375/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1504 Metric:1
RX packets:1984 errors:0 dropped:0 overruns:0 frame:0
TX packets:494 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:413532 (403.8 KiB) TX bytes:213008 (208.0 KiB)
Interrupt:21
eth0 Link encap:Ethernet HWaddr 74:AC:B9:
inet addr:192.168.200.205 Bcast:192.168.200.255 Mask:255.255.255.0
inet6 addr: fd42:bcc8:69d1:0:76ac:b9ff:feeb:4375/64 Scope:Global
inet6 addr: fd42:bcc8:69d1::9b7/128 Scope:Global
inet6 addr: fe80::76ac:b9ff:feeb:4375/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1017 errors:0 dropped:0 overruns:0 frame:0
TX packets:199 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:272930 (266.5 KiB) TX bytes:46051 (44.9 KiB)
eth1 Link encap:Ethernet HWaddr 74:AC:B9:
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
eth2 Link encap:Ethernet HWaddr 74:AC:B9:
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:967 errors:0 dropped:0 overruns:0 frame:0
TX packets:220 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:104890 (102.4 KiB) TX bytes:158257 (154.5 KiB)
eth3 Link encap:Ethernet HWaddr 74:AC:B9:
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
eth4 Link encap:Ethernet HWaddr 74:AC:B9:
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:185 errors:0 dropped:0 overruns:0 frame:0
TX packets:185 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:14428 (14.0 KiB) TX bytes:14428 (14.0 KiB)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment