ipv6 add del address

47 views
Skip to first unread message

nurdiansyah prahutama

unread,
Jan 28, 2020, 3:24:49 AM1/28/20
to klish
Hi, 

i would like to create add del ipv6 address in debian via klish, here ipv4 ptype and pattern : 

<!-- IP Address -->
    <!--=======================================================-->
    <PTYPE name="IP_ADDR"
        pattern="(((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))"
        help="A.B.C.D"/>
    <!--=======================================================-->
    <PTYPE name="IP_ADDR_MASK"
        pattern="^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\/([0-9]|[1-2][0-9]|3[0-2]))$"
        help="A.B.C.D[/mask]"/>
    <!--=======================================================-->
    <PTYPE name="IP_ADDR_ANY"
        pattern="^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\/([0-9]|[1-2][0-9]|3[0-2]))$|((25[0-5]|2[0-4]$
        help="A.B.C.D or A.B.C.D[/mask]"/>
    <!--=======================================================-->
 
if making ipv6, what modifications are needed,? I enter the ipv6 address an error appears: Syntax error: Illegal parameter .

#ip address 2403:ba00:f::34/64
Syntax error: Illegal parameter

i would greatly apprecaite any other sugesstions
Reply all
Reply to author
Forward
0 new messages