TG588v

From SixXS Wiki
Jump to: navigation, search

This writeup assumes you already have a sixxs tunnel and subnet created, with a static IP for your modem/router.

You will need ssh or telnet access to the router with administrative privileges. There are a number of ways to do this, googling *unlocka1* will give you an example for Austria.

Useful links:

* router datasheet on manufacturer's site
* Brief notes on many useful Technicolor CLI functions many of which apply to the TG588v also.
* Extended manuals on related Technicolor modems many of which apply to the TG588v also.
* an appendix covering IPv6 functionality while this is likely intended for telcos and support engineers it is all you need.
* *patience* this will take a while to work out the specifics for your system!

ssh or telnet to your router

MediaAccess TG588v
10.5.3.M
Copyright (c) 1999-2014, Technicolor
------------------------------------------------------------------------------

disable session timeout

:env set var=SESSIONTIMEOUT value=0 
:saveall

list external ppp interfaces

:ppp iflist

aINTERNET: dest  aHSI_atm    [00:00:00]  retry : 2
    admin state = down    oper state = down    link state = not-connected
    flags = echo magic accomp restart mru addr route savepwd demanddial ipv4 ipv6
    class = 12  echointerval = 10  echofail = 5 echototaltolerance = 50
    administrative mru = 1500  negotiation mru = 1500
    dod delay = 1s
    Tx inactivity = 900s
    auth type = auto    interval = 3    retries = 10
        [user name = admin]
        [password  = ********]
    mode = numbered
    dns metric = 30
    route : dst=0.0.0.0/0 - src=0.0.0.0/0 (metric 11)
    LCP    : state = initial   restartintv = 0   retransm = 10  term. reason =
    IPCP   : state = initial   restartintv = 0   retransm = 10  term. reason =
    IPV6CP : state = initial   restartintv = 0   retransm = 10  term. reason =
vINTERNET: dest  vHSI_eth    [000:00:0]  retry : 2
    admin state = up    oper state = up    link state = connected
    flags = echo magic accomp restart mru addr route savepwd demanddial ipv4 ipv6 ppp-max-payload pap
    class = 12  echointerval = 10  echofail = 5 echototaltolerance = 50
    administrative mru = 1500  negotiation mru = 1492
    dod delay = 1s
    Tx inactivity = 900s  left = 117s
    auth type = auto    interval = 3    retries = 10
        [user name = abc@def.com]
        [password  = ********]
    mode = numbered
    dns metric = 30
    route : dst=0.0.0.0/0 - src=0.0.0.0/0 (metric 10)
    LCP    : state = opened    restartintv = 0   retransm = 0   term. reason =
    IPCP   : state = opened    restartintv = 0   retransm = 0   term. reason = LCP down
    IPV6CP : state = opened    restartintv = 0   retransm = 0   term. reason = LCP down
    negotiated local interface id  = ::9999:22222:ffff:ffff
    negotiated remote interface id = ::222:cccc:ffff:aaaa
    PPPoE Client info
        [configured backoffscale = 1]
        [configured backofflimit = 8]
        [configured service      = None]
        [ac service              = None]
        [ac name                 = ZZZZZZZ-SSSSSSSS:2222:L2TP-LOW]
        [ac mac address          = 55:55:55:55:55:55]
        [session id              = 1234]

list physical and logical interfaces

:interface list

Name               Type                 State            Use  UL Interfaces
loop               ip                   connected        0
ethif1             physical             connected        1    ethport1
ethif2             physical             connected        1    ethport2
ethif3             physical             connected        1    ethport3
ethif4             physical             connected        1    ethport4
efmif1             physical             connected        1    EFM_eth
ethif5             physical             connected        1    virt
ndisveth0          physical             connected        0
bridge             eth                  connected        1    LocalNetwork
OBC                bridge               connected        1    bridge
ethport1           bridge               connected        1    bridge
RELAY              eth                  connected        0
aMGMT_atm          atm                  connected        1    aMGMT_eth
aIPTV_atm          atm                  connected        1    aIPTV_eth
aHSI_atm           atm                  connected        1    aINTERNET_ppp
wlif1              physical             connected        1    WLAN
ethport2           bridge               connected        1    bridge
ethport3           bridge               connected        1    bridge
ethport4           bridge               connected        1    bridge
WLAN               bridge               connected        1    bridge
virt               bridge               connected        1    bridge
EFM_eth            eth                  connected        3    vMGMT_eth, vIPTV_eth, vHSI_eth
vMGMT_eth          eth                  connected        1    vMGMT
vIPTV_eth          eth                  connected        1    vIPTV
vHSI_eth           eth                  connected        1    vINTERNET_ppp
aMGMT_eth          eth                  connected        1    aMGMT
aIPTV_eth          eth                  connected        1    aIPTV
aINTERNET_ppp      ppp                  not-connected    1    aINTERNET
aINTERNET          ip                   not-connected    0
aINTERNET_trigger  ip                   not-connected    0
vINTERNET_ppp      ppp                  connected        1    vINTERNET
vINTERNET         *ip                   connected        0
vINTERNET_trigger  ip                   not-connected    0
LocalNetwork       ip                   connected        0
aMGMT              ip                   connected        0
vMGMT              ip                   connected        0
aIPTV              ip                   connected        0
vIPTV              ip                   connected        0
6in4tunnel         ip                   connected        0

list mapping between physical to logical interfaces

:interface ifstack

HL Interface                      LL Interface                     State
LocalNetwork                      bridge                           connected
bridge                            OBC                              connected
bridge                            ethport1                         connected
ethport1                          ethif1                           connected
bridge                            ethport2                         connected
ethport2                          ethif2                           connected
bridge                            ethport3                         connected
ethport3                          ethif3                           connected
bridge                            ethport4                         connected
ethport4                          ethif4                           connected
bridge                            WLAN                             connected
WLAN                              wlif1                            connected
bridge                            virt                             connected
virt                              ethif5                           connected
vMGMT                             vMGMT_eth                        connected
vMGMT_eth                         EFM_eth                          connected
vIPTV                             vIPTV_eth                        connected
vIPTV_eth                         EFM_eth                          connected
vINTERNET_ppp                     vHSI_eth                         connected
vHSI_eth                          EFM_eth                          connected
EFM_eth                           efmif1                           connected
aMGMT                             aMGMT_eth                        connected
aMGMT_eth                         aMGMT_atm                        connected
aIPTV                             aIPTV_eth                        connected
aIPTV_eth                         aIPTV_atm                        connected
aINTERNET                         aINTERNET_ppp                    not-connected
aINTERNET_ppp                     aHSI_atm                         not-connected
vINTERNET                         vINTERNET_ppp                    connected

list any active routes

:ip rt6advd pdlist

Type legend : [D]HCP       [6]RD       6[T]o4      [U]LA
Flags legend: [A]utonomous On-[L]ink
Subnet-ID                Interface-ID             Adv. Intf.       Origin intf.     Type Flags
------------------------ ------------------------ ---------------- ---------------- ---- -----

:ip rt6advd pfxlist

Flags legend: [A]utonomous  [D]ynamic
              On-[L]ink     [C]onst lifetime
Subnet-ID                Interface-ID             Interface        Valid           Preferred       Type Flags
------------------------ ------------------------ ---------------- --------------- --------------- ---- ------


create the tunnel

:tunnel 6in4 add ifname=6in4tunnel

:tunnel 6in4 modify ifname=6in4tunnel sourceintf=vINTERNET destination=<your_POP_IPv4_address>

:ip rtadd dst=::/0 intf=6in4tunnel

:ip ifconfig intf=LocalNetwork ipv6=enabled

:ip rt6advd config zerotime enabled

:ip rt6advd ifadd intf=LocalNetwork

:ip rt6advd ifdetach intf=LocalNetwork

:ip rt6advd pfxadd intf=LocalNetwork prefix=<your_delegated_subnet_including::/64> vltime=2592000 pltime=604800 aflag=enabled lflag=enabled

:ip rt6advd ifconfig intf=LocalNetwork oflag=enabled maxinterval=600 mininterval=200 mflag=no reachabletime=0 curhoplimit=64 deflifetime=1800

:ip rt6advd ifattach intf=LocalNetwork

set up ping and ping6 for tracking tunnel liveness in sixxs and pop

:service system modify name=PING_RESPONDER state=enabled
:service system ifadd name=PING_RESPONDER group=wan
:service system list name=PING_RESPONDER expand=enabled

Idx Name             Protocol         SrcPort  DstPort  Group
---------------------------------------------------------------------------------
  1 PING_RESPONDER   icmp                      8
         Description................ ICMP echo responder
         Properties................. server
         Attributes................. state aclip aclif aclifgroup map log qoslabel routelabel natpmweight
         User Managed Attributes.... state aclip aclif aclifgroup
         Attribute Values :
         State...................... enabled
         QOS Label.................. None
         Route Label................ None
         NAT Portmap Weight ........ 10
         Ip Access List............. any
         Interface Access List...... any
         Interface Group Access List lan wan
         Map List................... 8
         Logging.................... disabled

:service system modify name=PINGv6_RESP state=enabled
:service system ifadd name=PINGv6_RESP group=wan
:service system list name=PINGv6_RESP expand=enabled
...

list routes and prefixes

:ip rt6advd pdlist
	Type legend : [D]HCP       [6]RD       6[T]o4      [U]LA
	Flags legend: [A]utonomous On-[L]ink
	Subnet-ID                Interface-ID             Adv. Intf.       Origin intf.     Type Flags
	------------------------ ------------------------ ---------------- ---------------- ---- -----

:ip rt6advd pfxlist
	Flags legend: [A]utonomous  [D]ynamic
	              On-[L]ink     [C]onst lifetime
	Subnet-ID                Interface-ID             Interface        Valid           Preferred       Type Flags
	------------------------ ------------------------ ---------------- --------------- --------------- ---- ------
	2001:1111:fff:287::/64   ::1                      LocalNetwork     2592000/2592000 604800/604800   USER [A.LC]
	
:ip rtlist
	Label                 Destination Interface        Admin Oper   Mtr         Gateway
	-----                 ----------- ---------        ----- ----   ---         -------
	                    10.0.0.138/32 loop             UP    [UP]     0
	                    10.0.0.255/32 loop             UP    [UP]     0
	                 10.194.188.42/32 loop             UP    [UP]     0
	                10.194.191.255/32 loop             UP    [UP]     0
	                  123.45.67.89/32 loop             UP    [UP]     0
	                     127.0.0.1/32 loop             UP    [UP]     0
	                 192.168.0.254/32 loop             UP    [UP]     0
	                 192.168.0.255/32 loop             UP    [UP]     0
	                 192.168.1.254/32 loop             UP    [UP]     0
	                 192.168.1.255/32 loop             UP    [UP]     0
	               255.255.255.255/32 loop             UP    [UP]     0
	                213.235.234.26/32 vINTERNET        UP    UP       0
	                  80.75.46.223/32 vMGMT            UP    UP      30  10.194.191.254
	                  80.75.55.135/32 vMGMT            UP    UP      30  10.194.191.254
	                 80.237.155.31/32 vMGMT            UP    UP      30  10.194.191.254
	                88.222.157.136/32 vMGMT            UP    UP      30  10.194.191.254
	                  188.40.66.22/32 vMGMT            UP    UP      30  10.194.191.254
	                 194.48.124.53/32 vMGMT            UP    UP      30  10.194.191.254
	                   212.183.6.0/25 vMGMT            UP    UP      30  10.194.191.254
	                      10.0.0.0/24 LocalNetwork     UP    [UP]     0
	                   192.168.0.0/24 LocalNetwork     UP    [UP]     0
	                   192.168.1.0/24 LocalNetwork     UP    [UP]     0
	                  10.194.188.0/22 vMGMT            UP    UP       0
	                    10.156.0.0/22 vMGMT            UP    UP      30  10.194.191.254
	                        0.0.0.0/0 vINTERNET        UP    UP      10
	
	Label                                          Destination Interface        Admin Oper   Mtr                                 Gateway
	-----                                          ----------- ---------        ----- ----   ---                                 -------
	                             fe80::9999:2222:ffff:ffff/128 loop             UP    [UP]     0
	                                        fe80::5555:777/128 loop             UP    [UP]     0
	                                                   ::1/128 loop             UP    [UP]     0
	                                                 fe80::/64 LocalNetwork     UP    [UP]     0
	                                                 fe80::/64 6in4tunnel       UP    [UP]     0
	                                                 fe80::/64 vINTERNET        UP    UP       0
	                                                      ::/0 6in4tunnel       UP    [UP]     0


:ip rtlist proto=ipv6 expand enabled

    Flags legend: [D]ynamic, [A]uto, [M]odified, [R]eject, [B]lackhole, d[E]precated,
                  [G]ateway, [H]ost, [I]nterface
    Destination                                 Label       Interface        Admin Oper   Mtr
    -----------                                 -----       ---------        ----- ----   ---
    2001:1111:fff:8287::/128                                loop             UP    [UP]     0
        Flags            : DA.....HI
        Origin           : kernel
        Use Count        : 0
    fe80::9999:2222:ffff:1234/128                           loop             UP    [UP]     0
        Flags            : DA.....HI
        Origin           : kernel
        Use Count        : 66
    fe80::5555:777/128                                      loop             UP    [UP]     0
        Flags            : DA.....HI
        Origin           : kernel
        Use Count        : 0
    2001:1111:fff:287::1/128                                loop             UP    [UP]     0
        Flags            : DA.....HI
        Origin           : kernel
        Use Count        : 6
    2001:1111:fff:287::/128                                 loop             UP    [UP]     0
        Flags            : DA.....HI
        Origin           : kernel
        Use Count        : 0
    ::1/128                                                 loop             UP    [UP]     0
        Flags            : DA.....HI
        Origin           : kernel
        Use Count        : 0
    2001:1111:fff:8287::/64                                 LocalNetwork     UP    [UP]     0
        Flags            : DA......I
        Origin           : kernel
        Use Count        : 988
    fe80::/64                                               6in4tunnel       UP    [UP]     0
        Flags            : DA......I
        Origin           : kernel
        Use Count        : 0
    fe80::/64                                               vINTERNET        UP    UP       0
        Flags            : DA......I
        Origin           : kernel
        Use Count        : 0
    2001:1111:fff:287::/64                                  LocalNetwork     UP    [UP]     0
        Flags            : DA...E..I
        Origin           : kernel
        Use Count        : 6
    fe80::/64                                               LocalNetwork     UP    [UP]     0
        Flags            : DA......I
        Origin           : kernel
        Use Count        : 0
    ::/0                                                    6in4tunnel       UP    [UP]     0
        Flags            : ........I
        Origin           : admin
        Use Count        : 955

save and dump config

The final *dump* command spits out a lot of text to your terminal. You may wish to do this in a separate command:

ssh SuperAdmin@router.ip ':config dump 6in4' > 6in4.config
:saveall
:config save filename=6in4
:config dump 6in4