What information you will find in this document



Similar documents
Configure A Secure Network Solution For Schools. What information will you find in this document?

Configuring PPPoE. PPPoE server configuration

Use 802.1x EAP-TLS or PEAP-MS-CHAP v2 with Microsoft Windows Server 2003 to Make a Secure Network

configure WAN load balancing

Configure Allied Telesis and Cisco routers to interoperate over L2TP

The network configuration for these examples is shown in the following figure. Load Balancer 1. public address

How To Configure some basic firewall and VPN scenarios

This How To Note describes one possible basic VRRP configuration.

What information will you find in this document?

Configure WAN Load Balancing

Configure Common ISDN Access Concentration With The Firewall. How To. Introduction. What information will you find in this note?

Which products and versions does it apply to?

How To Behind A Dynamically-Assigned Public IP Address

AlliedWare TM OS How To. Create a VPN between an Allied Telesis Router and a Microsoft Windows XP 1 Client, Without Using NAT-T.

Configure the Firewall VoIP Support Service (SIP ALG)

What information will you find in this document?

How To Create A VPN Between An Allied Telesis Router And A Microsoft Windows XP 1 Client, Without Using NAT-T

BASIC TCP/IP NETWORKING

VM-Series Firewall Deployment Tech Note PAN-OS 5.0

What information will you find in this document?

Allow Public and Private Address Access to Servers at a Service Provider Client Site. What information will you find in this document?

AlliedWare TM OS How To. Create a VPN between an Allied Telesis Router and a Microsoft Windows 7 Client, with or without NAT-T.

What information will you find in this document?

Linux TCP/IP Network Management

AlliedWare Plus OS How To Use sflow in a Network

Apply Firewall Policies And Rules

bintec Workshop WAN Partner Configuration Copyright November 8, 2005 Funkwerk Enterprise Communications GmbH Version 0.9

Configure Policy-based Routing

AlliedWare Plus OS How To. Configure QoS to prioritize SSH, Multicast, and VoIP Traffic. Introduction

What information will you find in this document?

How To Configure Some Basic OSPF Routing Scenarios. Introduction. Technical Guide. List of terms

Workshop on Scientific Applications for the Internet of Things (IoT) March

The example in this Note uses Linux for both the access controller (RADIUS server) and the supplicant (client).

Configure A Secure School Network Based On 802.1x

AlliedWare TM OS How To. Use DHCP Snooping and ARP Security to Block ARP Poisoning Attacks. Introduction. Related How To Notes

Tested Solution: Network Configuration and Inventory Management using Upgrade Manager

Written by Saif ur Rab Monday, 07 December :19 - Last Updated Monday, 27 December :19

How To. Configure E1 links. Introduction. What information will you find in this document?

In fact, the three most common reasons for a network slow down are: congestion data corruption collisions

AlliedWare TM OS How To. Create a VPN between an Allied Telesis Router and a Microsoft Windows XP 1 Client, over NAT-T.

Host Configuration (Linux)

Advanced SSH Tunneling by Bill Brassfield, Dev Ops Technical Consultant, Taos

Network Interface Failover using FONA

x900 Switch Access Requestor

AlliedWare OS How To Create a VPN, (including dynamic DNS) between Apple products running Mac OS X and an Allied Telesis Router

How To. Configure Microsoft Windows XP ** Virtual Private Network (VPN) client interoperability without NAT-T support.

What information will you find in this document?

How To Install Openstack On Ubuntu (Amd64)

Introduction to NetGUI

Configure Microsoft Windows XP ** Virtual Private Network (VPN) client interoperability with NAT-T support

Create a VPN between an Allied Telesis and a NetScreen Router

How To Set Up a RADIUS Server for User Authentication

How To Configure MAC-based port authentication

Case Study Ministry of Agriculture, France

PT Activity 8.1.2: Network Discovery and Documentation Topology Diagram

UIP1868P User Interface Guide

IT Essentials II: Network Operating Systems V 3.0

Advanced Computer Network Technologies Project Configuration of mvpn. Noha Pavol noh031

Tested Solution: Protecting your network with Symantec Network Access Control (NAC) and Allied Telesis Switches

VoIP Laboratory B How to re flash an IP04

Subnetting,Supernetting, VLSM & CIDR

1 PC to WX64 direction connection with crossover cable or hub/switch

Guideline for setting up a functional VPN

Comodo MyDLP Software Version 2.0. Installation Guide Guide Version Comodo Security Solutions 1255 Broad Street Clifton, NJ 07013

Broadband Router ESG-103. User s Guide

AlliedWare Plus OS How To Use Web-authentication

Configure QoS on x900-24, x900-12, and SwitchBlade x908 Series Switches

Fireware How To Authentication

[HOW TO RECOVER AN INFINITI/EVOLUTION MODEM IDX ] 1

Executive Summary. This white paper includes the following sections: A.What Does 802.1x Do? B. An Overview of the 802.1x Standard

Chapter 14 Point-to-Point Protocol (PPP)

Procedure: You can find the problem sheet on Drive D: of the lab PCs. 1. IP address for this host computer 2. Subnet mask 3. Default gateway address

Linux Networking. How Networking Works Configuring Networking in Linux Using redhat-config-network Network debugging Wireless networking IPv6

Canopy Wireless Broadband Platform

Solution Profile. i-net Infrastructure

Management Software. Web Browser User s Guide AT-S106. For the AT-GS950/48 Gigabit Ethernet Smart Switch. Version Rev.

Cloud Storage Quick Start Guide

This is a guide to Network Load Balancing (NLB) clustering options with Allied Telesis managed layer 3 devices.

Tru64 UNIX Best Practice

Virtual Systems with qemu

Setting Up A High-Availability Load Balancer (With Failover and Session Support) With Perlbal/Heartbeat On Debian Etch

Configuring Static and Dynamic NAT Simultaneously

Network Management and Debugging. Jing Zhou

Solutions Guide. Secure Remote Access. Allied Telesis provides comprehensive solutions for secure remote access.

Guideline to Windows 2003 Network Load Balancing Clustering with Allied Telesyn Switches. What information will you find in this document?

Tcpdump Lab: Wired Network Traffic Sniffing

How To Use An At9924 For A Long Distance Connection On A Powerline On A Ppltd Network (Powerline) On A Superfast Network (Networking) On An At 9924 (Powerplt) On The P

< Introduction > This technical note explains how to connect New SVR Series to DSL Modem or DSL Router. Samsung Techwin Co., Ltd.

Enabling NetFlow on Virtual Switches ESX Server 3.5

Allied Telesis provide virtual customer networks

LAB THREE STATIC ROUTING

Troubleshooting Tools

Change Log. 2 per vices corporation

Solutions Guide. Ethernet-based Network Virtualization for the Enterprise

AT-S84 Version ( ) Management Software for the AT-9000/24 Gigabit Ethernet Switch Software Release Notes

bigbluebutton Open Source Web Conferencing

Internet Access Setup

SAS3 INSTALLATION MANUAL SNONO SYSTEMS 2015

Firewall Load Balancing

Set up your AT-AR440S ADSL Router for Typical Network Scenarios. Note: The latest documentation can always be downloaded from

Transcription:

How To Set Up PPPoE Between a Linux Client and an Allied Telesis Access Concentrator Introduction This document describes how to set up PPPoE between a Linux client and an Allied Telesis device. What information you will find in this document This document is divided into the following sections: Configuring your Allied Telesis Device page 2 Configuring Your Linux Device page 3 Starting the Link page 4 Debugging and Verifying page 5 Other Hints page 6 Which products and software versions does this information apply to? Products: Rapier, AT-8800, AT-8900, AT-9900, AT-9800 and SwitchBlade series switches AR400 and AR700 series routers Software versions: 2.7.1 and later C613-16074-00 REV B www.alliedtelesis.com

Configuring your Allied Telesis Device Before starting, ensure that your PC has a version of rp-pppoe. If rp-pppoe isn t on your PC, do one of the following; Download it from http://www.roaringpenguin.com/penguin/open_source_rp-pppoe.php, then compile and install it. Use the prepackaged installer, for example RPM or deb.! Configure your Allied Telesis device as follows: add user=linux_client pass=password set user=linux_client telnet=no ipaddr=192.168.0.1 netmask=255.255.255.255 PPP templates configuration create ppp template=1 set ppp template=1 bap=off authentication=chap PPP configuration add ppp acservice=test template=1 vlan=1 ena ppp accessconcentrator IP configuration enable ip add ip int=vlan1 ip=192.168.0.254 Network diagram eth 1 port 1 Linux PC (client) Allied Telesis switch (Access Concentrator) Set Up PPPoE Between a Linux Client and an Allied Telesis Access Concentrator 2

Configuring Your Linux Device! Configure your Linux device as follows: 1. Set a host name. The host name must be a user on the Allied Telesis device. To set a default hostname on your linux device, use hostname <newname> : [root@linux_client michael] hostname linux_client 2. Check the ppp options file. The options file is not used when this particular pppd link is started. However, if it is used, it should look like this: [root@linux_client michael] cat /etc/ppp/options lock debug novj require-pap 3. Check the CHAP secrets file. In this configuration there are a number of lines that are commented out but only the last line is used. The last line of your CHAP secrets file should look like this (as underlined in output below): [root@linux_client michael] cat /etc/ppp/chap-secrets Secrets for authentication using CHAP client server secret IP addresses * test password * tester * 12345678 1.1.1.1 * * eightbit * eightbit * eightbit 1.1.1.2 manager pptpd friend * linux_client * password * Set Up PPPoE Between a Linux Client and an Allied Telesis Access Concentrator 3

Starting the Link! To configure your linux device, start the pppd (PPP daemon) process and tell it to start pppoe: [root@linux_client michael] pppd pty 'pppoe -I eth1' Loading PPP modules for linux kernel 2.4: [ OK ] [root@linux_client michael] ping 192.168.0.254 PING 192.168.0.254 (192.168.0.254) from 192.168.0.1 : 56(84) bytes of data. 64 bytes from 192.168.0.254: icmp_seq=0 ttl=64 time=357 usec 64 bytes from 192.168.0.254: icmp_seq=1 ttl=64 time=266 usec 64 bytes from 192.168.0.254: icmp_seq=2 ttl=64 time=256 usec --- 192.168.0.254 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max/mdev = 0.256/0.293/0.357/0.045 ms pppoe is actually another PPP daemon and we tell it to start pppoe discovery out eth1. The pty part makes pppd converse via a pseudo terminal, otherwise all the PPP output goes to the screen and hence the link will not come up. Set Up PPPoE Between a Linux Client and an Allied Telesis Access Concentrator 4

Debugging and Verifying Apart from PING, you can also check the following on your linux PC: [root@linux_client michael] ifconfig ppp0 Link encap:point-to-point Protocol inet addr:192.168.0.1 P-t-P:192.168.0.254 Mask:255.255.255.255 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1 RX packets:7 errors:0 dropped:0 overruns:0 frame:0 TX packets:8 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 [root@linux_client michael] ps ax grep ppp 4747? S 0:00 /usr/sbin/pppd pty pppoe -I eth1 4748? S 0:00 pppoe -I eth1 4769 pts/0 R 0:00 grep ppp [root@linux_client michael] pppstats IN PACK VJCOMP VJUNC VJERR OUT PACK VJCOMP VJUNC NON-VJ 310 7 0 0 0 322 8 0 0 8 On your Allied Telesis device, you can check the following: ena ppp templ=1 debug=decode ena ppp templ=1 debug=all show ppp show ppp pppoe Set Up PPPoE Between a Linux Client and an Allied Telesis Access Concentrator 5

Other Hints Here are some extra bits and pieces worthy of note. The linux PPPoE Daemon You can get PPPoE to display all the Access Concentrators who answer the PPPoE Active Discovery Initiation: [root@linux_client michael] pppoe -I eth1 -A -------------------------------------------------- Service-Name: test Got a cookie: 00 00 33 2f Access-Concentrator: -58245394 AC-Ethernet-Address: 00:00:cd:05:01:ff -------------------------------------------------- If you get more than one PPPoE Active Discovery Offer, you can take that information and manually select which Access Concentrator you want to respond to. For example: [root@linux_client michael] pppd pty 'pppoe -I eth1 -C -58245394' You can always see other PPPoE options by consulting the manual: [root@linux_client michael] man pppoe Set Up PPPoE Between a Linux Client and an Allied Telesis Access Concentrator 6

Multiple calls! To make multiple calls to the Access Concentrator: 1. Alter the configuration of the Allied Telesis device: add user=tester1 password=password set user=tester1 ipaddress=192.168.0.2 netmask=255.255.255.255 add user=tester2 password=password set user=tester2 ipaddress=192.168.0.3 netmask=255.255.255.255 add user=tester3 password=password set user=tester3 ipaddress=192.168.0.4 netmask=255.255.255.255 set ppp acservice=test maxsessions=3 2. Configure the linux device: [root@linux_client michael] ls -l /etc/ppp/peers/ total 12 -rw-r--r-- 1 root root 21 Aug 10 08:48 tester1 -rw-r--r-- 1 root root 21 Aug 10 08:51 tester2 -rw-r--r-- 1 root root 21 Aug 10 08:51 tester3 [root@linux_client michael] cat /etc/ppp/peers/tester1 name tester1 idle 30 [root@linux_client michael] cat /etc/ppp/peers/tester2 name tester2 idle 30 [root@linux_client michael] cat /etc/ppp/peers/tester3 name tester3 idle 30 The idle 30 means that after 30 seconds, if no traffic goes over a ppp interface, that interface is brought down. 3. Initiate the connection: [root@linux_client michael] pppd pty 'pppoe -I eth1 -U' call tester1 If you want to initiate more than one connection, simply repeat the above command, but change the call name (as underlined). Set Up PPPoE Between a Linux Client and an Allied Telesis Access Concentrator 7

More about idle times In the previous section we set an idle timeout on PPP, on the Linux device This means that after 30 seconds of idle time PPP will send a Link Control Protocol (LCP) message with a Termination Request. The Allied Telesis device responds with a Termination Ack. PPPoE then takes over and both devices finish the connection with a PADT frame. In Linux, you can set a PPPoE idle timeout. This means that PPPoE will go straight to sending a PADT and PPP itself will not get the opportunity to send an LCP Termination Request. Allied Telesis devices will ignore a PADT frame if it is not preempted by an LCP Termination Request, so nothing will happen on the Allied Telesis device when pppoe takes down the connection on the Linux device. To set a PPPoE idle timeout (30 seconds in this example): [root@linux_client michael] pppd pty 'pppoe -I eth1 U T 30' Compression The Van Jacobson style TCP/IP header (VJ) compression is now standard on PPP links. It is supported in both Allied Telesis and Linux PPP. To turn on VJ compression on the Allied Telesis device: set ppp template=1 vjc=on VJ compression should be on your linux device by default. However, check the PPP options file to ensure that the VJ compression has not been disabled. [root@linux_client michael] cat /etc/ppp/options lock noauth noipdefault usepeerdns Comment out or delete the following line if it exists novj USA Headquarters 19800 North Creek Parkway Suite 200 Bothell WA 98011 USA T: +1 800 424 4284 F: +1 425 481 3895 European Headquarters Via Motta 24 6830 Chiasso Switzerland T: +41 91 69769.00 F: +41 91 69769.11 Asia-Pacific Headquarters 11 Tai Seng Link Singapore 534182 T: +65 6383 3832 F: +65 6383 3830 www.alliedtelesis.com 2006 Allied Telesyn Inc. All rights reserved. Information in this document is subject to change without notice. All company names, logos, and product designs that are trademarks or registered trademarks are the property of their respective owners. C613-16074-00 REV B