net24 na linii Netii (DRAFT)
W przypadku usługi net24 na linii netii używany jest protokół PPPoE z parametrami Vpi/Vci odpowiednio: 8/35 i enkapsulacją LLC
Konfiguracja kernela
[*] Networking support --->
Networking options --->
<M> Asynchronous Transfer Mode (ATM)
<M> RFC1483/2684 Bridged protocols
Device Drivers --->
[*] Network device support --->
<M> PPP (point-to-point protocol) support
<M> PPP Deflate compression
<M> PPP BSD-Compress compression
<M> PPP over Ethernet (EXPERIMENTAL)
[*] USB support --->
<M> USB DSL modem support --->
<M> ADI 930 and eagle USB DSL modem (jeśli nasz modem to modem Sagem Fast 800)
<M> Speedtouch USB support (jeśli nasz modem to Alcatel Speedtouch 330)
Software
Chyba każda nowoczesna dystrybucja linuksa zawiera odpowiednie paczki w repozytorium. Zaznaczmy więc tylko, że potrzebne nam jest:
- ppp - Point-to-Point Protocol (PPP)
- ueagle-atm - Firmware and configuration instructions for Eagle USB E4 ADSL Modem driver (jeśli nasz modem to modem Sagem Fast 800)
- speedtouch-usb - Firmware and configuration instructions for the kernel-space driver for Alcatel SpeedTouch USB modems (jeśli nasz modem to Alcatel Speedtouch 330)
- br2684ctl - Utility for configuring RFC 2684 ATM/Ethernet bridging
Konfiguracja
Tu już pewnie wiele zależy od dystrybucji ale za akżdym razem spodziewałbym się jakiejś informacji załączonej wraz z paczką z firmware modemu.
W przypadku Gentoo taką dokumentację znaleźć można w pliku:
- /usr/share/doc/ueagle-atm-1.1-r3/README.bz2 (Jeśli instalujemy Sagema)
- /usr/share/doc/speedtouch-usb-3.0.1.2-r3/README.bz2 (Dla modemu Thomsona/Alcatela)
Cała konfiguracja sprowadza się do dodania do pliku /etc/conf.d/net
# Configure first the RFC2684 bridge interface
config_nas0='null'
# Use "-e 0" for LLC mux or "-e 1" for VC mux.
# The 2 numbers after "-a" represent the VPI & VCI of your ISP, and
# they are separated by a dot. Ask your ISP about those numbers.
br2684ctl_nas0='-e 0 -a 8.35'
config_ppp0='ppp' # Runs /lib/rcscripts/net/pppd.sh
link_ppp0='nas0' # The name of the RFC2684 bridge interface
plugins_ppp0='pppoe'
# 'man pppd' shows other options. Compression is disabled because it is
# rarely taken advantage of, and may interfere with the connection.
# Add option 'usepeerdns' to populate /etc/resolv.conf
pppd_ppp0='updetach noauth debug defaultroute noaccomp nobsdcomp noccp nodeflate nopcomp novj novjccomp child-timeout 60'
username_ppp0='username@net24.com.pl' # ADSL login, assigned by your ISP
password_ppp0='password' # ADSL password, assigned by your ISP
depend_ppp0() {
need net.nas0
}
# If the kernel modules are not built-in, then they must be loaded
# before starting the RFC2684 bridge:
function preup() {
if [[ "$1" = "nas0" ]] ; then
modprobe -q speedtch
return 0
fi
}
Pamiętając, że prawidłowe na Net24 parametry Vpi/Vci to 8.35, oraz że lp.moc.42ten|emanresu#lp.moc.42ten|emanresu i password to nie koniecznie prawidłowe wartości ;-).
Edytujemy plik /etc/resolv.conf dodając adresy serwerów DNS
nameserver 213.241.79.37
nameserver 83.238.255.76
Pozostaje stworzenie symlinków do net.lo i przetestowanie połączenia:
# cd /etc/init.d/
# ln -sfn net.lo net.ppp0
# ln -sfn net.lo net.nas0
# /etc/init.d/net.ppp0
net24 na linii Telekomunikacji
Nie mam gdzie sprawdzić, ale AFAIK jest identycznie jak z neostradą czyli PPPoA i to chyba jedyna poważna różnica.