Internet connection

A connection to the Internet can be realized with different Internet access technologies implementing diverse protocols:

Note1: – forwarding of IPv4 is already enabled (in file /etc/sysctl.conf)
Note2:MASQUERADING is also already enabled (in file /etc/config/firewall)
Note3: – The LAN and the wireless network interfaces are bridged together
Note4: The WLAN is disabled by default (in file /etc/config/wireless)

The network is configured using the uci file /etc/config/network. This file may be edited manually or using the uci command line.

See the following sections that pertain to your particular connection requirements:

  • DSLPPP or PPPoE or PPPoA.
    • via built-in modem. Here is an example of a dummy pppoe over atm (most common) configuration, the values that you have to use vary depending on your ISP:
      # Configure pppoe connection
      uci set network.wan.proto=pppoe
      uci set network.wan.username=''
      uci set network.wan.password='yourpassword'
      # Configure atm bridge
      uci set network.atm.encaps='llc'
      uci set network.atm.payload='bridged'
      uci set network.atm.vpi='8'
      uci set network.atm.vci='32'
      # Configure adsl settings
      uci set network.adsl.fwannex='a'
      uci set network.adsl.annex='a2p'
      # Save changes
      uci commit network
      # Restart network service to reflect changes
      /etc/init.d/network restart
      # Bring up the atm bridge and start it automatically on boot
      /etc/init.d/br2684ctl start
      /etc/init.d/br2684ctl enable
    • via a modem connected over an Ethernet cable: you could access.modem.through.nat (imo uncommon to need to do this), or just log on through it with PPPoE after setting it up:
      uci set network.wan.proto=pppoe
      uci set network.wan.username=''
      uci set network.wan.password='yourpassword'
      uci commit network
      ifup wan

      One might read more at network_configuration

  • DOCSISDHCP or static IP address
    • via built-in modem: you can carry out adjustments
    • via a modem connected over an Ethernet cable: you could access.modem.through.nat
    • via built-in modem:
    • via a modem connected over USB (often called a 3G dongle):
  • via plain Ethernet
    • DHCP (default)
      • Example configuration commands:
        uci set network.wan.proto=static
        uci set network.wan.ipaddr=
        uci set network.wan.netmask=
        uci set network.wan.gateway=
        uci set network.wan.dns=''
        uci commit network
        ifup wan
  • via wireless (one of the 802.11x-standards)
  • for multiple connections to the Internet, you should first make them each working solitary with OpenWrt before trying this: MultiWAN
  • via USB tethering through your smartphone

Next-generation network comprises VoIP (aka Voice over IP protocol) and IPTV / UDP multicast and everything is based on the Internet Protocol! These data streams should be separated from the usual data stream and routed to some hardware port where you can grab them with whatever device you wish to use them. If the output does not take place over a standard Ethernet Port, but e.g. over an ISDN- or a TAE connector, a corresponding signal has to be generated in hardware. This needs Linux support as well.

A trick to make the data packets belonging to the different services easily distinguishable from one another, is the usage of VLAN trunking. It has to be done on both sides, and you have to utilize the same VIDs as your ISP does. So, go learn about VLANs.

While you learn about VLAN and VLAN trunking it might be helpful to keep in mind, that with VLAN trunking you send three (respectively two) data services over one line, but want to simulate that you do this over three (respectively two) lines. So you have three virtual ports on the ISP side, each sends its packets over its own virtual line, to each its virtual port in your router. Now to get the data OUT of your router, each of the three virtual ports, has to have second port connected to it.

So, on your side, you would need six ports and three lines, but you (most likely) have only four ports and one line. So make the one port with the line connected to it, act as if it was three ports with each one separate line connected to it. That's it. As easy as eating pancakes or opening a can with an electrical can opener.

Note: If you have Dual/Triple/Quadruple Play you may find some help here:

Some ISPs offer Information about Settings on 3rd_Party_Routers

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies
  • Last modified: 2023/10/06 04:22
  • by vgaetera