…about Linux, electronics, digital photography, whatever…
Icône RSS Icône Accueil
  • Cisco 1841 ADSL configuration for Free telecom

    Posté le 17th mai 2009 leucos Pas de commentaires

    (a french translation for this article is here)

    http://leucos.lstilde.org/wp/2009/05/cisco-1841-ads…r-free-telecom/

    People connected via Free, a french internet provider are usually happy customers… until they need to get support. Well, this is a problem with most of providers out there.

    When you subscribe to Free, they send you a Freebox : a combo containing a DSL modem, a router, an FXS to hook your telephone, and sometimes more if you’re lucky enough to have TV and other services.

    But when you don’t want to use this box, or when it’s dead, you can use alternate ways to get connected. The easiest one if to get a DSL modem (a speedtouch for instance), and use a PPPoE capable routeur (like a Linksys WRT54GL + tomato firmware).

    You can also do PPPoA if you have a router with an ATM interface. The configuration included below can be used on a Cisco 1841 routeur with ATM card to connect to Free. It probably can be adapted to other models  very easily by changing only interface names.

    You can debug what happens by issuing :

    debug ppp neg
    debug ppp auth

    Good luck.

    !
    version 12.4
    no service pad
    service timestamps debug datetime msec
    service timestamps log datetime msec
    service password-encryption
    !
    hostname c1841-pppoa
    !
    boot-start-marker
    boot-end-marker
    !
    enable secret 0 CHANGE_YOUR_ENABLE_PASSWORD
    !
    no aaa new-model
    !
    resource policy
    !
    memory-size iomem 5
    mmi polling-interval 60
    !
    no mmi auto-configure
    no mmi pvc
    mmi snmp-timeout 180
    ip subnet-zero
    ip cef
    !
    !
    no ip dhcp use vrf connected
    !
    ! Global pool for the LAN clients
    ip dhcp pool CLIENTS
    import all
    network 192.168.0.0 255.255.255.0
    default-router 192.168.0.254
    dns-server 192.168.0.254
    !
    ! Static assignements for specific clients
    ip dhcp pool pc1
    import all
    host 192.168.0.2 255.255.255.0
    client-identifier 0013.8dd7.2ada
    !
    ip dhcp pool pc2
    import all
    host 192.168.0.3 255.255.255.0
    client-identifier 0018.f327.3137
    !
    ip domain name whatever.it.is
    !
    ! Use ssh
    ! You need to issue
    ! crypto key generate rsa
    ! first
    ip ssh time-out 60
    ip ssh authentication-retries 2
    !
    ! Lets define some user
    username _CHANGE_USERNAME password à CHANGE_USERPASSWORD
    !
    !
    !
    interface Null0
    no ip unreachables
    !
    ! This is LAN side
    interface FastEthernet0/0
    description LAN connection
    ip address 192.168.0.254 255.255.255.0
    ip nat inside
    ip virtual-reassembly
    duplex auto
    speed auto
    no cdp enable
    !
    interface FastEthernet0/1
    no ip address
    speed auto
    !
    ! This is the ATM interface
    ! We\'re doing PPPoA
    interface ATM0/0/0
    no ip address
    no atm ilmi-keepalive
    dsl operating-mode auto
    pvc 8/35
    ubr 160
    encapsulation aal5mux ppp dialer
    dialer pool-member 1
    !
    !
    interface BRI0/1/0
    no ip address
    shutdown
    !
    ! Dialer interface for PPP negotiation
    interface Dialer0
    ip address negotiated
    ip nat outside
    ip virtual-reassembly
    encapsulation ppp
    no cdp enable
    ppp authentication chap pap callin
    ppp chap hostname 04XXXXXXXX@freeadsl
    ppp chap password 0 CHANGE_TO_YOUR_CHAP_PASS
    !
    ppp pap sent-username 04XXXXXXXX@freeadsl password 0 CHANGE_TO_YOUR_CHAP_PASS
    ! Required to get DNS servers
    ppp ipcp dns request
    !
    ip classless
    ip route 0.0.0.0 0.0.0.0 Dialer0
    !
    ! Required to act as a DNS server for the LAN clients
    ip dns server
    !
    ! Oh please no !
    no ip http server
    no ip http secure-server
    !
    ! Do some NAT for LAN clients
    ip nat inside source list 10 interface Dialer0 overload
    access-list 10 permit 192.168.0.0 0.0.0.255
    !
    control-plane
    !
    line con 0
    stopbits 1
    line aux 0
    line vty 0 4
    password 0 CHANGE_TO_SOME_PASS
    login local
    ! We just want ssh, not telnet
    transport input ssh
    !
    end

    Laisser une réponse

    Security Code: