| Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision |
| docs:guide-user:network:wan:wan_interface_protocols [2022/12/27 10:49] – [Table] charles_harris | docs:guide-user:network:wan:wan_interface_protocols [2024/01/07 19:06] – [Protocol "pppoe" (PPP over Ethernet)] fix questioned fields charles_harris |
|---|
| </code> | </code> |
| |
| ^ Name ^ Type ^ Required ^ Default ^ Description ^ Example ^ | ^ Name ^ Type ^ Required ^ Default ^ Description |
| | ''username'' | string | no(?) | //(none)// | Username for PAP/CHAP authentication | | | | ''username'' | string | no | //(none)// | Username for PAP/CHAP authentication | |
| | ''password'' | string | no(?) | //(none)// | Password for PAP/CHAP authentication | | | | ''password'' | string | no | //(none)// | Password for PAP/CHAP authentication | |
| | ''ac'' | string | no | //(none)// | Specifies the Access Concentrator to connect to. If unset, ''pppd'' uses the first discovered one | | | | ''ac'' | string | no | //(none)// | Specifies the Access Concentrator to connect to. If unset, ''pppd'' uses the first discovered one | |
| | ''service'' | string | no | //(none)// | Specifies the Service Name to connect to, If unset, ''pppd'' uses the first discovered one | | | | ''service'' | string | no | //(none)// | Specifies the Service Name to connect to, If unset, ''pppd'' uses the first discovered one | |
| | ''host_uniq'' | string | no | //(none)// | Specifies the PPPoE Host-Uniq tag (hex) to connect with. If unset, it uses the ''pppd'' process ID | | | | ''host_uniq'' | string | no | //(none)// | Specifies the PPPoE Host-Uniq tag (hexstring) to connect with. If unset, it uses the ''pppd'' process ID | |
| | ''connect'' | file path | no | //(none)// | Path to custom PPP connect script | | | | ''connect'' | file path | no | //(none)// | Path to custom PPP connect script | |
| | ''disconnect'' | file path | no | //(none)// | Path to custom PPP disconnect script | | | | ''disconnect'' | file path | no | //(none)// | Path to custom PPP disconnect script | |
| | ''keepalive'' | 2 numbers | no | //(none)// | The numbers must be separated by a space. First number is "we assume the connection is down after this number of pings failed" (**ppp**'s **lcp-echo-failure** option). Second number is for "seconds between each ping" (**ppp**'s **lcp-echo-interval** option). | option keepalive '5 5' | | | ''keepalive'' | 2 numbers | no | ''5 1'' | The numbers must be separated by a space. First number is "we assume the connection is down after this number of pings failed" (**ppp**'s **lcp-echo-failure** option). Second number is for "seconds between each ping" (**ppp**'s **lcp-echo-interval** option). | |
| | ''demand'' | number | no | //(none)// | Number of seconds to wait before closing the connection due to inactivity | | | | ''demand'' | number | no | //(none)// | Number of seconds to wait before closing the connection due to inactivity | |
| | ''defaultroute'' | boolean | no | ''1'' | Replace existing default route on PPP connect | | | | ''defaultroute'' | boolean | no | ''1'' | Replace existing default route on PPP connect | |
| | ''peerdns'' | boolean | no | ''1'' | Use peer-assigned DNS server(s) | | | | ''peerdns'' | boolean | no | ''1'' | Use peer-assigned DNS server(s) | |
| | ''dns'' | list of ip addresses | no | //(none)// | Override peer-assigned DNS server(s) | | | | ''dns'' | list of ip addresses | no | //(none)// | Override peer-assigned DNS server(s) | |
| | ''ipv6'' | [0,1,auto] | no | ''auto'' | Enable IPv6 on the PPP link. See Protocol "ppp" above | | | | ''ipv6'' | [0,1,auto] | no | ''auto'' | Enable IPv6 on the PPP link. See Protocol "ppp" above | |
| | ''pppd_options'' | string | no | //(none)// | Additional command line arguments to pass to the pppd daemon, e.g. **debug** | | | | ''pppd_options'' | string | no | //(none)// | Additional command line arguments to pass to the pppd daemon e.g ''debug'' | |
| |
| ===== Protocol "pppoa" (PPP over ATM AAL5) ===== | ===== Protocol "pppoa" (PPP over ATM AAL5) ===== |
| ==== PPPoE internet connection ==== | ==== PPPoE internet connection ==== |
| <code bash> | <code bash> |
| config 'interface' 'wan' | config interface 'wan' |
| option 'proto' 'pppoe' | option proto 'pppoe' |
| option 'ifname' 'eth1' | option device 'eth0' |
| option 'username' 'user' | option username 'user' |
| option 'password' 'pass' | option password 'pass' |
| option 'timeout' '10' | option keepalive '4 5' |
| </code> | </code> |
| |