Benutzer-Werkzeuge

Webseiten-Werkzeuge


vyos-omniswitch

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen Revision Vorhergehende Überarbeitung
vyos-omniswitch [2017/03/11 22:39]
benny [VyOS mit OmniSwitch verbinden]
vyos-omniswitch [2017/03/12 14:43] (aktuell)
benny
Zeile 332: Zeile 332:
 ! TWAMP : ! TWAMP :
 </​code>​ </​code>​
 +
 +====== PPPoE Server mit VyOS ======
 +
 +<WRAP center round important 60%>
 +Hiermit habe ich derzeit noch einige Herausforderungen. Heute baue ich parallel mal ein Debian mit rp-pppoe v3.12 aus den Quellen und dann mal schauen ob die Themen dort auch auftreten.
 +</​WRAP>​
 +
 +===== read (syncReadFromPPP):​ Session 1: Value too large for defined data type =====
 +
 +<​code>​
 +Mar 12 03:27:38 VyOS-Lab ntpd[2124]: Listen normally on 11 ppp0 192.168.30.1 UDP 123
 +Mar 12 03:27:38 VyOS-Lab ntpd[2124]: peers refreshed
 +Mar 12 03:27:45 VyOS-Lab kernel: [ 1936.887280] [NAT-SRC-110-MASQ] IN= OUT=eth0 SRC=192.168.30.100 DST=192.168.0.1 LEN=54 TOS=0x00 PREC=0x00 TTL=63 ID=53622 DF PROTO=UDP SPT=46470 DPT=53 LEN=34 ​
 +Mar 12 03:27:45 VyOS-Lab kernel: [ 1936.899477] [NAT-SRC-110-MASQ] IN= OUT=eth0 SRC=192.168.30.100 DST=193.99.144.80 LEN=84 TOS=0x00 PREC=0x00 TTL=63 ID=1106 DF PROTO=ICMP TYPE=8 CODE=0 ID=7200 SEQ=1 
 +Mar 12 03:27:45 VyOS-Lab kernel: [ 1936.922763] [NAT-SRC-110-MASQ] IN= OUT=eth0 SRC=192.168.30.100 DST=192.168.0.1 LEN=72 TOS=0x00 PREC=0x00 TTL=63 ID=53629 DF PROTO=UDP SPT=47212 DPT=53 LEN=52 ​
 +Mar 12 03:28:47 VyOS-Lab kernel: [ 1999.640790] [NAT-SRC-110-MASQ] IN= OUT=eth0 SRC=192.168.30.100 DST=192.168.0.1 LEN=60 TOS=0x00 PREC=0x00 TTL=63 ID=55889 DF PROTO=UDP SPT=56942 DPT=53 LEN=40 ​
 +Mar 12 03:28:47 VyOS-Lab kernel: [ 1999.640952] [NAT-SRC-110-MASQ] IN= OUT=eth0 SRC=192.168.30.100 DST=192.168.0.1 LEN=60 TOS=0x00 PREC=0x00 TTL=63 ID=55891 DF PROTO=UDP SPT=56201 DPT=53 LEN=40 ​
 +Mar 12 03:28:47 VyOS-Lab kernel: [ 1999.655310] [NAT-SRC-110-MASQ] IN= OUT=eth0 SRC=192.168.30.100 DST=62.138.116.25 LEN=60 TOS=0x00 PREC=0x00 TTL=63 ID=43642 DF PROTO=TCP SPT=54567 DPT=80 WINDOW=29040 RES=0x00 SYN URGP=0 ​
 +Mar 12 03:28:47 VyOS-Lab pppoe[4542]:​ read (syncReadFromPPP):​ Session 1: Value too large for defined data type
 +Mar 12 03:28:48 VyOS-Lab pppd[4539]: Modem hangup
 +Mar 12 03:28:48 VyOS-Lab pppd[4539]: Connect time 1.2 minutes.
 +Mar 12 03:28:48 VyOS-Lab pppd[4539]: Sent 15391 bytes, received 1035 bytes.
 +Mar 12 03:28:48 VyOS-Lab zebra[1556]:​ interface ppp0 index 10 changed <​POINTOPOINT,​NOARP,​MULTICAST>​.
 +Mar 12 03:28:48 VyOS-Lab charon: 11[KNL] interface ppp0 deactivated
 +Mar 12 03:28:48 VyOS-Lab charon: 13[KNL] 192.168.30.1 disappeared from ppp0
 +Mar 12 03:28:48 VyOS-Lab pppd[4539]: Connection terminated.
 +Mar 12 03:28:48 VyOS-Lab zebra[1556]:​ interface ppp0 index 10 deleted.
 +Mar 12 03:28:48 VyOS-Lab ripd[1558]: interface delete ppp0 index 10 flags 0x1090 metric 1 mtu 1492
 +Mar 12 03:28:48 VyOS-Lab ripngd[1560]:​ interface delete ppp0 index 10 flags 0x1090 metric 1 mtu 1492
 +Mar 12 03:28:48 VyOS-Lab charon: 16[KNL] interface ppp0 deleted
 +Mar 12 03:28:48 VyOS-Lab pppd[4539]: Exit.
 +Mar 12 03:28:48 VyOS-Lab pppoe-server[4499]:​ Session 1 closed for client 00:​25:​90:​5d:​e1:​7e (192.168.30.100) on eth1.30
 +Mar 12 03:28:48 VyOS-Lab pppoe-server[4499]:​ Sent PADT
 +Mar 12 03:28:49 VyOS-Lab ntpd[2124]: Deleting interface #11 ppp0, 192.168.30.1#​123,​ interface stats: received=0, sent=0, dropped=0, active_time=71 secs
 +Mar 12 03:28:49 VyOS-Lab ntpd[2124]: peers refreshed
 +</​code>​
 +
 +===== (syncReadFromPPP):​ Session 2: Input/​output error =====
 +<​code>​
 +Mar 12 02:56:49 VyOS-Lab rsyslogd-2359:​ action '​action 2' resumed (module '​builtin:​omfwd'​) [try http://​www.rsyslog.com/​e/​2359 ]
 +Mar 12 02:56:52 VyOS-Lab sshd[2307]: Accepted password for vyos from 192.168.0.138 port 56250 ssh2
 +Mar 12 02:56:52 VyOS-Lab sshd[2307]: pam_unix(sshd:​session):​ session opened for user vyos by (uid=0)
 +Mar 12 02:57:02 VyOS-Lab pppoe-server[2385]:​ Session 1 created for client 00:​25:​90:​5d:​e1:​7e (192.168.30.100) on eth1.30 using Service-Name ''​
 +Mar 12 02:57:02 VyOS-Lab pppd[2385]: Plugin rp-pppoe.so loaded.
 +Mar 12 02:57:02 VyOS-Lab kernel: [   ​93.954435] PPP generic driver version 2.4.2
 +Mar 12 02:57:02 VyOS-Lab pppd[2385]: pppd 2.4.6 started by root, uid 0
 +Mar 12 02:57:02 VyOS-Lab pppd[2385]: Using interface ppp0
 +Mar 12 02:57:02 VyOS-Lab pppd[2385]: Connect: ppp0 <--> /dev/pts/1
 +Mar 12 02:57:02 VyOS-Lab zebra[1556]:​ interface ppp0 index 6 <​POINTOPOINT,​NOARP,​MULTICAST>​ added.
 +Mar 12 02:57:02 VyOS-Lab systemd-sysctl[2397]:​ Overwriting earlier assignment of net/​core/​rmem_max in file '/​etc/​sysctl.d/​99-sysctl.conf'​.
 +Mar 12 02:57:02 VyOS-Lab pppoe[2392]:​ Changed pty line discipline to N_HDLC for synchronous mode
 +Mar 12 02:57:02 VyOS-Lab kernel: [   ​94.015973] HDLC line discipline maxframe=4096
 +Mar 12 02:57:02 VyOS-Lab kernel: [   ​94.015977] N_HDLC line discipline registered.
 +Mar 12 02:57:33 VyOS-Lab pppd[2385]: LCP: timeout sending Config-Requests
 +Mar 12 02:57:33 VyOS-Lab pppd[2385]: Connection terminated.
 +Mar 12 02:57:33 VyOS-Lab zebra[1556]:​ interface ppp0 index 6 deleted.
 +Mar 12 02:57:33 VyOS-Lab ripngd[1560]:​ interface delete ppp0 index 6 flags 0x1090 metric 1 mtu 1500
 +Mar 12 02:57:33 VyOS-Lab charon: 08[KNL] interface ppp0 deleted
 +Mar 12 02:57:33 VyOS-Lab ripd[1558]: interface delete ppp0 index 6 flags 0x1090 metric 1 mtu 1500
 +Mar 12 02:57:33 VyOS-Lab pppd[2385]: Modem hangup
 +Mar 12 02:57:33 VyOS-Lab pppoe[2392]:​ read (syncReadFromPPP):​ Session 1: Input/​output error
 +Mar 12 02:57:33 VyOS-Lab pppd[2385]: Exit.
 +Mar 12 02:57:33 VyOS-Lab pppoe-server[2198]:​ Session 1 closed for client 00:​25:​90:​5d:​e1:​7e (192.168.30.100) on eth1.30
 +Mar 12 02:57:33 VyOS-Lab pppoe-server[2198]:​ Sent PADT
 +Mar 12 02:58:03 VyOS-Lab newgrp[2458]:​ user '​vyos'​ (login '​vyos'​ on pts/0) switched to group '​vyattacfg'​
 +Mar 12 02:58:26 VyOS-Lab pppoe-server[2563]:​ Session 2 created for client 00:​25:​90:​5d:​e1:​7e (192.168.30.101) on eth1.30 using Service-Name ''​
 +Mar 12 02:58:26 VyOS-Lab pppd[2563]: Plugin rp-pppoe.so loaded.
 +Mar 12 02:58:26 VyOS-Lab pppd[2563]: pppd 2.4.6 started by root, uid 0
 +Mar 12 02:58:26 VyOS-Lab pppd[2563]: Using interface ppp0
 +Mar 12 02:58:26 VyOS-Lab zebra[1556]:​ interface ppp0 index 7 <​POINTOPOINT,​NOARP,​MULTICAST>​ added.
 +Mar 12 02:58:26 VyOS-Lab pppd[2563]: Connect: ppp0 <--> /dev/pts/1
 +Mar 12 02:58:26 VyOS-Lab pppoe[2566]:​ Changed pty line discipline to N_HDLC for synchronous mode
 +Mar 12 02:58:26 VyOS-Lab systemd-sysctl[2571]:​ Overwriting earlier assignment of net/​core/​rmem_max in file '/​etc/​sysctl.d/​99-sysctl.conf'​.
 +Mar 12 02:58:57 VyOS-Lab pppd[2563]: LCP: timeout sending Config-Requests
 +Mar 12 02:58:57 VyOS-Lab pppd[2563]: Connection terminated.
 +Mar 12 02:58:57 VyOS-Lab zebra[1556]:​ interface ppp0 index 7 deleted.
 +Mar 12 02:58:57 VyOS-Lab ripngd[1560]:​ interface delete ppp0 index 7 flags 0x1090 metric 1 mtu 1500
 +Mar 12 02:58:57 VyOS-Lab charon: 13[KNL] interface ppp0 deleted
 +Mar 12 02:58:57 VyOS-Lab ripd[1558]: interface delete ppp0 index 7 flags 0x1090 metric 1 mtu 1500
 +Mar 12 02:58:57 VyOS-Lab pppd[2563]: Modem hangup
 +Mar 12 02:58:57 VyOS-Lab pppoe[2566]:​ read (syncReadFromPPP):​ Session 2: Input/​output error
 +Mar 12 02:58:57 VyOS-Lab pppd[2563]: Exit.
 +</​code>​
 +
 +Auch anschauen:
 +
 +LCP: timeout sending Config-Requests
 +
 +<​code>​
 +vyos@VyOS-Lab#​ show
 + ​interfaces {
 +     ​ethernet eth0 {
 +         /* dhcp */
 +         ​address dhcp
 +         ​description WAN
 +         ​duplex auto
 +         hw-id 52:​54:​00:​3b:​af:​9e
 +         ​policy {
 +             route mss
 +         }
 +         ​smp-affinity auto
 +         speed auto
 +     }
 +     ​ethernet eth1 {
 +         ​description "​VyOS-Lab eth1"
 +         ​duplex auto
 +         hw-id 00:​25:​90:​5d:​e1:​7d
 +         ​smp-affinity auto
 +         speed auto
 +         vif 20 {
 +             ​address 192.168.20.1/​24
 +             ​description "​VyOS-Lab eth1.20"​
 +         }
 +         vif 30 {
 +             ​description "VyOS PPPoE-Server eth1.30"​
 +             ​policy {
 +                 route mss
 +             }
 +         }
 +     }
 +     ​loopback lo {
 +     }
 + }
 + nat {
 +     ​source {
 +         rule 100 {
 +             log disable
 +             ​outbound-interface eth0
 +             ​source {
 +                 ​address 192.168.20.0/​24
 +             }
 +             ​translation {
 +                 ​address masquerade
 +             }
 +         }
 +         rule 110 {
 +             ​description "NAT for PPPoE"
 +             log enable
 +             ​outbound-interface eth0
 +             ​source {
 +                 ​address 192.168.30.0/​24
 +             }
 +             ​translation {
 +                 ​address masquerade
 +             }
 +         }
 +     }
 + }
 + ​policy {
 +     route mss {
 +         rule 5 {
 +             ​protocol tcp
 +             set {
 +                 ​tcp-mss 1452
 +             }
 +             tcp {
 +                 flags SYN
 +             }
 +         }
 +     }
 + }
 + ​service {
 +     ​dhcp-server {
 +         ​disabled false
 +         ​hostfile-update disable
 +         ​shared-network-name VyOS-Lab {
 +             ​authoritative disable
 +             ​subnet 192.168.20.0/​24 {
 +                 ​default-router 192.168.20.1
 +                 ​dns-server 192.168.0.1
 +                 ​domain-name vlan20.home
 +                 lease 86400
 +                 start 192.168.20.10 {
 +                     stop 192.168.20.50
 +                 }
 +             }
 +         }
 +     }
 +     dns {
 +     }
 +     lldp {
 +         ​management-address 192.168.0.229
 +     }
 +     ​pppoe-server {
 +         ​access-concentrator VyOSLabAC
 +         ​authentication {
 +             ​local-users {
 +                 ​username benny {
 +                     ​password ********
 +                 }
 ++                username blub {
 ++                    password ********
 ++                }
 +             }
 +             mode local
 +         }
 +         ​client-ip-pool {
 +             start 192.168.30.100
 +             stop 192.168.30.150
 +         }
 +         ​dns-servers {
 +             ​server-1 192.168.0.1
 +         }
 +         ​interface eth1.30
 +         mtu 1492
 +         ​service-name VyOSLabSN
 +     }
 +     ssh {
 +         /* 192.168.0.229 */
 +         ​listen-address 192.168.0.229
 +         port 22
 +     }
 + }
 + ​system {
 +     ​config-management {
 +         ​commit-revisions 20
 +     }
 +     ​host-name VyOS-Lab
 +     login {
 +         user vyos {
 +             ​authentication {
 +                 ​encrypted-password ********************
 +                 ​plaintext-password ""​
 +             }
 +             level admin
 +         }
 +     }
 +     ntp {
 +         ​server 0.pool.ntp.org {
 +         }
 +         ​server 1.pool.ntp.org {
 +         }
 +         ​server 2.pool.ntp.org {
 +         }
 +     }
 +     ​options {
 +         ​ctrl-alt-del-action ignore
 +         ​reboot-on-panic true
 +     }
 +     ​package {
 +         ​auto-sync 1
 +         ​repository community {
 +             ​components main
 +             ​distribution helium
 +             ​password ""​
 +             url http://​packages.vyos.net/​vyos
 +             ​username ""​
 +         }
 +     }
 +     ​syslog {
 +         ​global {
 +             ​facility all {
 +                 level notice
 +             }
 +             ​facility protocols {
 +                 level debug
 +             }
 +         }
 +         host 192.168.0.177 {
 +             ​facility all {
 +                 /* info */
 +                 level info
 +             }
 +         }
 +     }
 +     ​time-zone Europe/​Berlin
 + }
 +</​code>​
 +
vyos-omniswitch.txt · Zuletzt geändert: 2017/03/12 14:43 von benny