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 togetherNote4 : 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:
# Configure pppoe connection uci set network.wan.proto=pppoe uci set network.wan.username='yougotthisfromyour@isp.su' 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
uci set network.wan.proto=pppoe uci set network.wan.username='yougotthisfromyour@isp.su' uci set network.wan.password='yourpassword' uci commit network ifup wanOne might read more at network
uci set network.wan.proto=static uci set network.wan.ipaddr=74.125.115.103 uci set network.wan.netmask=255.255.255.0 uci set network.wan.gateway=74.125.115.1 uci set network.wan.dns='8.8.8.8 8.8.4.4' uci commit network ifup wan
Note:
The opposite (USB reverse tethering aka USB internet passthrough) is also possible.Next-generation network comprises VoIP and IPTV 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: x.play. |
Some ISPs offer Information about Settings on 3rd_Party_Routers