1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Confused with Router's ifconfig

Discussion in 'Tomato Firmware' started by xworm, Oct 11, 2007.

  1. xworm

    xworm LI Guru Member

    I have a WR850Gv2 with tomato 1.10 VPN firmware.
    The following is output of ifconfig:
    -------Start--------
    br0 Link encap:Ethernet HWaddr 00:0C:10:21:32:03
    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:4065 errors:0 dropped:0 overruns:0 frame:0
    TX packets:6084 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:429226 (419.1 KiB) TX bytes:1795277 (1.7 MiB)

    eth0 Link encap:Ethernet HWaddr 00:0C:10:21:32:03
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:5709 errors:0 dropped:0 overruns:0 frame:0
    TX packets:7481 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:100
    RX bytes:709664 (693.0 KiB) TX bytes:1976196 (1.8 MiB)
    Interrupt:5 Base address:0x2000

    eth1 Link encap:Ethernet HWaddr 00:0C:10:21:32:05
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:7
    TX packets:2974 errors:68 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:100
    RX bytes:0 (0.0 B) TX bytes:1002394 (978.9 KiB)
    Interrupt:4 Base address:0x1000

    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    UP LOOPBACK RUNNING MULTICAST MTU:16436 Metric:1
    RX packets:156 errors:0 dropped:0 overruns:0 frame:0
    TX packets:156 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:11849 (11.5 KiB) TX bytes:11849 (11.5 KiB)

    ppp0 Link encap:point-to-Point Protocol
    inet addr:124.77.73.91 P-t-P:124.74.0.200 Mask:255.255.255.255
    UP POINTOPOINT RUNNING MULTICAST MTU:1492 Metric:1
    RX packets:1118 errors:0 dropped:0 overruns:0 frame:0
    TX packets:871 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:3
    RX bytes:121672 (118.8 KiB) TX bytes:115975 (113.2 KiB)

    vlan0 Link encap:Ethernet HWaddr 00:0C:10:21:32:03
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:4065 errors:0 dropped:0 overruns:0 frame:0
    TX packets:6084 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:445486 (435.0 KiB) TX bytes:1819613 (1.7 MiB)

    vlan1 Link encap:Ethernet HWaddr 00:0C:10:21:32:04
    UP BROADCAST RUNNING MULTICAST MTU:1492 Metric:1
    RX packets:1644 errors:0 dropped:0 overruns:0 frame:0
    TX packets:1397 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:161416 (157.6 KiB) TX bytes:156583 (152.9 KiB)
    ----------END--------

    I understand what is lo and ppp0 for.But I'm confused with the others:
    eth0/eth1 are physical interface, br0/vlan0/vlan1 are logical(virtual) interface, right?
    what's eth0/eth1 for? and br0/vlan0/vlan1 for?
    is there any relationship between each physical/logical(virtual) interface?
    what's the relationship is like?
     
  2. mstombs

    mstombs Network Guru Member

    I think eth0 is the 5 port switch divided up into vlan0 LAN and vlan1 WAN.
    eth1 is the wireless interface.
    br0 is a virtual bridge joining vlan0 and eth1 to form the router LAN side interface (see brctl and route command for further research)
    ppp0 is the VPN ppp connection which is connected via vlan1
     
  3. Rafatk

    Rafatk Network Guru Member

    Actualy the ppp0 is the PPPoE connection to ISP which is in the vlan1 where the WAN port is.
     
  4. xworm

    xworm LI Guru Member

Share This Page