cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
12
Views
0
Helpful
2
Replies
Highlighted
Cisco Employee

Cisco ASR9K configuration issue

Dear NSO Community,

I am trying to generate ASR9K below configuration using NCS Cli. I am using latest version of Cisco IOS XR NED.

interface gi1/1/0.1000 l2transport mtu 1518
interface gi1/1/0.1000 l2transport encapsulation dot1q 1000
interface gi1/1/0.1000 l2transport rewrite ingress tag pop 1 symmetric
interface gi1/1/0.1000 l2transport service-policy input CCS-CPE-MANAGEMENT
interface gi1/1/0.1000 l2transport ipv4 access-group NETMGMT egress


But I am not getting option for l2transport for sub interface configuration. Any idea??

Thanks in advance!

Regards,
Vishesh Kansal

Everyone's tags (3)
1 ACCEPTED SOLUTION

Accepted Solutions
Cisco Employee

Re: Cisco ASR9K configuration issue

 

Dear NSO Community,

I am trying to generate ASR9K below configuration using NCS Cli. I am using latest version of Cisco IOS XR NED.

interface gi1/1/0.1000 l2transport mtu 1518
interface gi1/1/0.1000 l2transport encapsulation dot1q 1000
interface gi1/1/0.1000 l2transport rewrite ingress tag pop 1 symmetric
interface gi1/1/0.1000 l2transport service-policy input CCS-CPE-MANAGEMENT
interface gi1/1/0.1000 l2transport ipv4 access-group NETMGMT egress


But I am not getting option for l2transport for sub interface configuration. Any idea??

 

 

 

 

quick review of the NED shows that “l2transport" is under the leaf "mode" on subinterfaces.


        
leaf mode
{
           tailf:cli-drop-node-name;
           tailf:cli-hide-in-submode;
           type enumeration {
            
enum l2transport
;
             enum symmetric;
           }
         }


(and in your sample above, you need "4" numbers?  “rack / slot / module / port” (you have "3"))


applying your data via ncs cli… (as a quick test)…


admin@ncs%
set devices device xr0 config cisco-ios-xr:interface GigabitEthernet-subinterface GigabitEthernet 1/0/0/0.1 mode l2transport mtu 1580                 
[ok][2015-11-03 08:37:40]

[edit]
admin@ncs%
set devices device xr0 config cisco-ios-xr:interface GigabitEthernet-subinterface GigabitEthernet 1/0/0/0.1 mode l2transport encapsulation dot1q vlan-id 1000
[ok][2015-11-03 08:38:32]

[edit]
admin@ncs%
set devices device xr0 config cisco-ios-xr:interface GigabitEthernet-subinterface GigabitEthernet 1/0/0/0.1 mode l2transport rewrite ingress tag pop 1 mode symmetric

[ok][2015-11-03 08:39:07]

[edit]
admin@ncs%
set devices device xr0 config cisco-ios-xr:interface GigabitEthernet-subinterface GigabitEthernet 1/0/0/0.1 mode l2transport service-policy input name CCS-CPE-MANAGEMNT
[ok][2015-11-03 08:39:30]

[edit]
admin@ncs%
set devices device xr0 config cisco-ios-xr:interface GigabitEthernet-subinterface GigabitEthernet 1/0/0/0.1 mode l2transport ipv4 access-group egress name NETMGMT
[ok][2015-11-03 08:40:26]

[edit]
admin@ncs%



admin@ncs% commit dry-run
device xr0 {
    config {
        cisco-ios-xr:interface {
            GigabitEthernet-subinterface {
   +            GigabitEthernet 1/0/0/0.1 {
   +                mode l2transport;
   +                mtu 1580;
   +                encapsulation {
   +                    dot1q {
   +                        vlan-id [ 1000 ];
   +                    }
   +                }
   +                service-policy {
   +                    input {
   +                        name CCS-CPE-MANAGEMNT;
   +                    }
   +                }
   +                ipv4 {
   +                    access-group egress {
   +                        name NETMGMT;
   +                    }
   +                }
   +                rewrite {
   +                    ingress {
   +                        tag {
   +                            pop 1;
   +                            mode symmetric;
   +                        }
   +                    }
   +                }
   +            }
            }
        }
    }
}
[ok][2015-11-03 08:42:35]

[edit]
admin@ncs% 

 

 

 

 

 

 

 

Best regards,
Gregg

-------------------------------------------------------------------------
.:|:.:|:. | gregg schudel (ccie#9591) Tail-f software solutions architect
   cisco   | mobile: +1 571 332 2222   email:
gschudel@cisco.com
-------------------------------------------------------------------------

 

 

2 REPLIES 2
Cisco Employee

Re: Cisco ASR9K configuration issue

 

Dear NSO Community,

I am trying to generate ASR9K below configuration using NCS Cli. I am using latest version of Cisco IOS XR NED.

interface gi1/1/0.1000 l2transport mtu 1518
interface gi1/1/0.1000 l2transport encapsulation dot1q 1000
interface gi1/1/0.1000 l2transport rewrite ingress tag pop 1 symmetric
interface gi1/1/0.1000 l2transport service-policy input CCS-CPE-MANAGEMENT
interface gi1/1/0.1000 l2transport ipv4 access-group NETMGMT egress


But I am not getting option for l2transport for sub interface configuration. Any idea??

 

 

 

 

quick review of the NED shows that “l2transport" is under the leaf "mode" on subinterfaces.


        
leaf mode
{
           tailf:cli-drop-node-name;
           tailf:cli-hide-in-submode;
           type enumeration {
            
enum l2transport
;
             enum symmetric;
           }
         }


(and in your sample above, you need "4" numbers?  “rack / slot / module / port” (you have "3"))


applying your data via ncs cli… (as a quick test)…


admin@ncs%
set devices device xr0 config cisco-ios-xr:interface GigabitEthernet-subinterface GigabitEthernet 1/0/0/0.1 mode l2transport mtu 1580                 
[ok][2015-11-03 08:37:40]

[edit]
admin@ncs%
set devices device xr0 config cisco-ios-xr:interface GigabitEthernet-subinterface GigabitEthernet 1/0/0/0.1 mode l2transport encapsulation dot1q vlan-id 1000
[ok][2015-11-03 08:38:32]

[edit]
admin@ncs%
set devices device xr0 config cisco-ios-xr:interface GigabitEthernet-subinterface GigabitEthernet 1/0/0/0.1 mode l2transport rewrite ingress tag pop 1 mode symmetric

[ok][2015-11-03 08:39:07]

[edit]
admin@ncs%
set devices device xr0 config cisco-ios-xr:interface GigabitEthernet-subinterface GigabitEthernet 1/0/0/0.1 mode l2transport service-policy input name CCS-CPE-MANAGEMNT
[ok][2015-11-03 08:39:30]

[edit]
admin@ncs%
set devices device xr0 config cisco-ios-xr:interface GigabitEthernet-subinterface GigabitEthernet 1/0/0/0.1 mode l2transport ipv4 access-group egress name NETMGMT
[ok][2015-11-03 08:40:26]

[edit]
admin@ncs%



admin@ncs% commit dry-run
device xr0 {
    config {
        cisco-ios-xr:interface {
            GigabitEthernet-subinterface {
   +            GigabitEthernet 1/0/0/0.1 {
   +                mode l2transport;
   +                mtu 1580;
   +                encapsulation {
   +                    dot1q {
   +                        vlan-id [ 1000 ];
   +                    }
   +                }
   +                service-policy {
   +                    input {
   +                        name CCS-CPE-MANAGEMNT;
   +                    }
   +                }
   +                ipv4 {
   +                    access-group egress {
   +                        name NETMGMT;
   +                    }
   +                }
   +                rewrite {
   +                    ingress {
   +                        tag {
   +                            pop 1;
   +                            mode symmetric;
   +                        }
   +                    }
   +                }
   +            }
            }
        }
    }
}
[ok][2015-11-03 08:42:35]

[edit]
admin@ncs% 

 

 

 

 

 

 

 

Best regards,
Gregg

-------------------------------------------------------------------------
.:|:.:|:. | gregg schudel (ccie#9591) Tail-f software solutions architect
   cisco   | mobile: +1 571 332 2222   email:
gschudel@cisco.com
-------------------------------------------------------------------------

 

 

Cisco Employee

Re: Cisco ASR9K configuration issue

 

Hi Gregg,

 

Thanks! It works

 

Regards,

Vishesh

 

Content for Community-Ad
August's Community Spotlight Awards
This widget could not be displayed.