| Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision |
| docs:user-guide:network:wan:internet.connection [2018/03/03 16:50] – ↷ Links adapted because of a move operation bobafetthotmail | docs:guide-user:network:wan:internet.connection [2023/10/06 04:20] – update link vgaetera |
|---|
| ====== Internet Connection ====== | ====== Internet connection ====== |
| A connection to the Internet can be realized with different [[docs:hardware:internet.access.technologies|Internet access technologies]] implementing diverse protocols: | A connection to the Internet can be realized with different [[docs:techref:hardware:internet.access.technologies|Internet access technologies]] implementing diverse protocols: |
| |
| | {{:meta:icons:tango:dialog-information.png?nolink}} | **//''Note1''://** – forwarding of IPv4 is already ''enabled'' (in file ''[[docs:user-guide:base-system:notuci.config#etcsysctl.conf|/etc/sysctl.conf]]'')\\ **//''Note2''://** – ''[[wp>Network address translation|MASQUERADING]]'' is also already ''enabled'' (in file ''[[docs:user-guide:firewall:firewall_configuration|/etc/config/firewall]]'') \\ **//''Note3''://** – The LAN and the wireless [[docs:guide-developer:networking:start#network interfaces]] are bridged together\\ **//''Note4''://** The WLAN is ''disabled'' by default (in file ''[[docs:user-guide:network:wifi:basic|/etc/config/wireless]]'') | | | {{:meta:icons:tango:dialog-information.png?nolink}} | **//''Note1''://** – forwarding of IPv4 is already ''enabled'' (in file ''[[docs:guide-user:base-system:notuci.config#etcsysctl.conf|/etc/sysctl.conf]]'')\\ **//''Note2''://** – ''[[wp>Network address translation|MASQUERADING]]'' is also already ''enabled'' (in file ''[[docs:guide-user:firewall:firewall_configuration|/etc/config/firewall]]'') \\ **//''Note3''://** – The LAN and the wireless [[docs:guide-developer:networking:start#network interfaces]] are bridged together\\ **//''Note4''://** The WLAN is ''disabled'' by default (in file ''[[docs:guide-user:network:wifi:basic|/etc/config/wireless]]'') | |
| |
| ===== General Configuration ===== | ===== General configuration ===== |
| The network is configured using the [[docs:user-guide:base-system:uci]] file ''[[docs:user-guide:network:basics|/etc/config/network]]''. This file may be edited manually or using the [[docs:user-guide:base-system:uci#command_line_utility|uci command line]]. | The network is configured using the [[docs:guide-user:base-system:uci]] file ''[[docs:guide-user:network:network_configuration|/etc/config/network]]''. This file may be edited manually or using the [[docs:guide-user:base-system:uci#command_line_utility|uci command line]]. |
| |
| See the following sections that pertain to your particular connection requirements: | See the following sections that pertain to your particular connection requirements: |
| |
| * **DSL** -> [[doc:uci:network#protocol_ppp_ppp_over_modem|PPP]] or [[doc:uci:network#protocol_pppoe_ppp_over_ethernet|PPPoE]] or [[doc:uci:network#protocol_pppoa_ppp_over_atm_aal5|PPPoA]]. | * **DSL** -> [[docs:guide-user:network:wan:wan_interface_protocols#protocol_ppp_ppp_over_modem|PPP]] or [[docs:guide-user:network:wan:wan_interface_protocols#protocol_pppoe_ppp_over_ethernet|PPPoE]] or [[docs/guide-user/network/wan/wan_interface_protocols#protocol_pppoa_ppp_over_atm_aal5|PPPoA]]. |
| * via built-in modem. Here there is an example of a dummy pppoe over atm(most common) configuration, the values that you have to use vary depending on your ISP: <code># Configure pppoe connection | * 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: <code># Configure pppoe connection |
| uci set network.wan.proto=pppoe | uci set network.wan.proto=pppoe |
| uci set network.wan.username='yougotthisfromyour@isp.su' | uci set network.wan.username='yougotthisfromyour@isp.su' |
| /etc/init.d/br2684ctl start | /etc/init.d/br2684ctl start |
| /etc/init.d/br2684ctl enable</code> | /etc/init.d/br2684ctl enable</code> |
| * via a modem connected over an Ethernet cable: you could [[docs:user-guide:network:wan:access.modem.through.nat]] (imo uncommon to need to do this), or just log on through it with PPPoE after setting it up: <code>uci set network.wan.proto=pppoe | * via a modem connected over an Ethernet cable: you could [[docs:guide-user:network:wan:access.modem.through.nat]] (imo uncommon to need to do this), or just log on through it with PPPoE after setting it up: <code>uci set network.wan.proto=pppoe |
| uci set network.wan.username='yougotthisfromyour@isp.su' | uci set network.wan.username='yougotthisfromyour@isp.su' |
| uci set network.wan.password='yourpassword' | uci set network.wan.password='yourpassword' |
| uci commit network | uci commit network |
| ifup wan</code> One might read more at [[docs:user-guide:network:basics]] | ifup wan</code> One might read more at [[docs:guide-user:base-system:basic-networking]] |
| * **DOCSIS** -> [[doc:uci:network#protocol_dhcp|DHCP]] or [[doc:uci:network#protocol_static|static IP address]] | * **DOCSIS** -> [[docs:guide-user:network:protocol.dhcp|DHCP]] or [[docs:guide-user:network:protocol.static|static IP address]] |
| * via built-in modem: you can carry out adjustments | * via built-in modem: you can carry out adjustments |
| * via a modem connected over an Ethernet cable: you could [[docs:user-guide:network:wan:access.modem.through.nat]] | * via a modem connected over an Ethernet cable: you could [[docs:guide-user:network:wan:access.modem.through.nat]] |
| * HSDPA/**UMTS**/EDGE/GPRS/GSM -> [[doc:uci:network#protocol_3g_ppp_over_ev-do_cdma_umts_or_gprs|3G]] | * HSDPA/**UMTS**/EDGE/GPRS/GSM -> [[docs:guide-user:network:wan:wan_interface_protocols#protocol_3g_ppp_over_ev-do_cdma_umts_or_gprs|3G]] |
| * via built-in modem: | * via built-in modem: |
| * via a modem connected over USB (often called a //3G dongle//): | * via a modem connected over USB (often called a //3G dongle//): |
| * via plain **Ethernet** | * via plain **Ethernet** |
| * [[doc:uci:network#protocol_dhcp|DHCP]] (default) | * [[docs:guide-user:network:protocol.dhcp|DHCP]] (default) |
| * [[doc:uci:network#protocol_static|Static IP]] | * [[docs:guide-user:network:protocol.static|Static IP]] |
| * Example configuration commands: <code> | * Example configuration commands: <code> |
| uci set network.wan.proto=static | uci set network.wan.proto=static |
| uci commit network | uci commit network |
| ifup wan</code> | ifup wan</code> |
| * [[docs:user-guide:services:vpn.overview|VPN]] | * [[docs:guide-user:services:vpn:start|VPN]] |
| * via [[doc:uci:network#protocol_l2tp_ppp_over_l2tp_pseudowire_tunnel]] + [[docs:user-guide:services:connect_by_l2tp]] | * via [[docs:guide-user:network:ipv6_ipv4_transitioning#protocol_l2tp_ppp_over_l2tp_tunnel]] + [[docs:guide-user:network:wan:connect_by_l2tp]] |
| * via **wireless** (one of the 802.11x-standards) | * 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: [[docs:user-guide:services:multiwan|MultiWAN]] | * for **multiple connections** to the Internet, you should first make them each working solitary with OpenWrt before trying this: [[docs:guide-user:network:wan:multiwan:multiwan_package|MultiWAN]] |
| * via **[[docs:user-guide:advanced:usb.tethering|USB tethering]]** through your smartphone | * via **[[docs:guide-user:network:wan:smartphone.usb.tethering|USB tethering]]** through your smartphone |
| * **''Note:''** The opposite (//[[docs:user-guide:advanced:usb.reverse.tethering|USB reverse tethering]]// aka //USB internet passthrough//) is also possible. | * **''Note:''** The opposite (//[[docs:guide-user:network:wan:smartphone.usb.reverse.tethering|USB reverse tethering]]// aka //USB internet passthrough//) is also possible. |
| |
| ===== NGN: VoIP and IPTV ===== | ===== NGN: VoIP and IPTV ===== |
| [[wpde>Next-generation network]] comprises [[doc:howto:VoIP]] and [[doc:howto:IPTV]] and everything is based on the [[wp>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 [[wp>TAE connector]], a corresponding signal has to be generated in hardware. This needs Linux support as well. | [[wpde>Next-generation network]] comprises [[docs:guide-user:services:voip:start|VoIP (aka Voice over IP protocol)]] and [[docs:guide-user:network:wan:udp_multicast|IPTV / UDP multicast]] and everything is based on the [[wp>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 [[wp>TAE connector]], a corresponding signal has to be generated in hardware. This needs Linux support as well. |
| |
| ==== Da trick with the VLAN trunking ==== | ==== Da trick with the VLAN trunking ==== |
| 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. | 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. |
| |
| | {{:meta:icons:tango:48px-dialog-error-round.svg.png?nolink}} | **''Note:''** If you have **[[wp>Triple play (telecommunications)|Dual/Triple/Quadruple Play]]** you may find some help here: [[docs:user-guide:services:x.play]]. | | | {{:meta:icons:tango:48px-dialog-error-round.svg.png?nolink}} | **''Note:''** If you have **[[wp>Triple play (telecommunications)|Dual/Triple/Quadruple Play]]** you may find some help here: [[docs:guide-user:network:wan:x.play]]. | |
| |
| ===== IPv6 ===== | ===== IPv6 ===== |
| * ->[[docs:user-guide:network:ipv6:ipv6]] | * ->[[docs:guide-user:network:ipv6:ipv6]] |
| |
| ===== Automatic Configuration ===== | ===== Automatic Configuration ===== |
| * We do not recommend this: [[doc:howto:user.beginner.lazy]] | * We do not recommend this: [[doc:howto:user.beginner.lazy]] |
| |
| |
| Some ISPs offer Information about Settings on [[http://www.beusergroup.co.uk/technotes/index.php?title=Main_Page#3rd_Party_Routers|3rd_Party_Routers]] | Some ISPs offer Information about Settings on [[http://www.beusergroup.co.uk/technotes/index.php?title=Main_Page#3rd_Party_Routers|3rd_Party_Routers]] |
| |
| |