Options

interface range not validated - command rejected

OulkarnainOulkarnain Member Posts: 14 ■■■□□□□□□□
Hi

I am very new in CCNA study and I am trying to master Cisco IOS cmds. I am using cisco packet tracer. I am trying to up interfaces 2/0 - 2/3 all together but it doesnt work as below -


Router#show ip interface brief
Interface IP-Address OK? Method Status Protocol

FastEthernet0/0 unassigned YES unset administratively down down

FastEthernet0/1 unassigned YES unset administratively down down

FastEthernet0/2/0 unassigned YES unset administratively down down

FastEthernet0/2/1 unassigned YES unset administratively down down

FastEthernet0/2/2 unassigned YES unset administratively down down

FastEthernet0/2/3 unassigned YES unset administratively down down

Vlan1 192.168.1.1 YES manual administratively down down
Router#confi
Router#configure t
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface range fastEthernet 2/0 - 3
interface range not validated - command rejected
Router(config)#


1. How to do no shutdown of interfaces 2/0 - 2/3 all together? Thanks in advance.

Comments

  • Options
    oli356oli356 Member Posts: 364
    Example
    FastEthernet0/1/0 unassigned YES unset administratively down down
    FastEthernet0/1/1 unassigned YES unset administratively down down
    FastEthernet0/1/2 unassigned YES unset administratively down down
    FastEthernet0/1/3 unassigned YES unset administratively down down
    interface range fastEthernet 0/1/0 - fa 0/1/3
    no shutdown

    You're missing out a 0 in your syntax. FastEthernet 0/2/0, FastEthernet 0/2/1
    But when doing the range command you're just doing 2/0 not 0/2/0, try that.
    Lab:
    Combination of GNS3 and Cisco equipment if required.
  • Options
    OulkarnainOulkarnain Member Posts: 14 ■■■□□□□□□□
    Hi

    I am trying this on a 2811 router and the output is as below -

    Router#configure terminal
    Enter configuration commands, one per line. End with CNTL/Z.
    Router(config)#interface range fastEthernet 0/2/0 - 0/2/3
    ^
    % Invalid input detected at '^' marker.


    I have also configured a vlan for 0/2/0 - 0/2/3 as below -

    Router#en
    Router#sh vlan

    VLAN Name Status Ports
    ----



    1 default active Fa0/2/0, Fa0/2/1, Fa0/2/2, Fa0/2/3
    1002 fddi-default act/unsup
    1003 token-ring-default act/unsup
    1004 fddinet-default act/unsup
    1005 trnet-default act/unsup
    VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
    ----






    ----


    1 enet 100001 1500 - - - - - 0 0
    1002 fddi 101002 1500 - - - - - 0 0
    1003 tr 101003 1500 - - - - - 0 0
    1004 fdnet 101004 1500 - - - ieee - 0 0
    1005 trnet 101005 1500 - - - ibm - 0 0
    Remote SPAN VLANs



    Primary Secondary Type Ports




    Router#
    Configuring vlan1 on switch port 0/2/0 - 0/2/3 can have any influence that may restrict from executing the interface range cmd in the above mentioned ports?
  • Options
    OulkarnainOulkarnain Member Posts: 14 ■■■□□□□□□□
    Hi Again

    Please note the ^ sign is just under 0/2/3 of interface range fastEthernet 0/2/0 - 0/2/3.
  • Options
    MusixaMusixa Member Posts: 10 ■□□□□□□□□□
    Oulkarnain wrote: »
    Hi

    I am trying this on a 2811 router and the output is as below -

    Router#configure terminal
    Enter configuration commands, one per line. End with CNTL/Z.
    Router(config)#interface range fastEthernet 0/2/0 - 0/2/3
    ^
    % Invalid input detected at '^' marker.


    I have also configured a vlan for 0/2/0 - 0/2/3 as below -

    Router#en
    Router#sh vlan

    VLAN Name Status Ports
    ----



    1 default active Fa0/2/0, Fa0/2/1, Fa0/2/2, Fa0/2/3
    1002 fddi-default act/unsup
    1003 token-ring-default act/unsup
    1004 fddinet-default act/unsup
    1005 trnet-default act/unsup
    VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
    ----






    ----


    1 enet 100001 1500 - - - - - 0 0
    1002 fddi 101002 1500 - - - - - 0 0
    1003 tr 101003 1500 - - - - - 0 0
    1004 fdnet 101004 1500 - - - ieee - 0 0
    1005 trnet 101005 1500 - - - ibm - 0 0
    Remote SPAN VLANs



    Primary Secondary Type Ports




    Router#
    Configuring vlan1 on switch port 0/2/0 - 0/2/3 can have any influence that may restrict from executing the interface range cmd in the above mentioned ports?

    Hi Oulkarnain, I think the problem is the syntax of your command "Router(config)#interface range fastEthernet 0/2/0 - 0/2/3". It should be "Router(config)#interface range fastEthernet 0/2/0 - 3".When using the interface range command, you should not include the full serial port number in the last range. Include only the last number of the serial port number.

    "Configuring vlan1 on switch port 0/2/0 - 0/2/3 can have any influence that may restrict from executing the interface range cmd in the above mentioned ports? "

    It will not influence it. Vlan 1 is created by default.

    I hope this helps, goodluck! icon_thumright.gif
  • Options
    OulkarnainOulkarnain Member Posts: 14 ■■■□□□□□□□
    Thanks, it worked
  • Options
    TBAM327TBAM327 Registered Users Posts: 2 ■□□□□□□□□□
    does this go for GigabitEthernet also?
  • Options
    TBAM327TBAM327 Registered Users Posts: 2 ■□□□□□□□□□
    this is what i tried

    interface range g1/1 - 2
  • Options
    Danielh22185Danielh22185 Member Posts: 1,195 ■■■■□□□□□□
    Context help is your friend :)
    Currently Studying: IE Stuff...kinda...for now...
    My ultimate career goal: To climb to the top of the computer network industry food chain.
    "Winning means you're willing to go longer, work harder, and give more than anyone else." - Vince Lombardi
  • Options
    dontstopdontstop Member Posts: 579 ■■■■□□□□□□
    The following are all valid! As long as you have the listed interfaces these will work. :)
    int range g0/1 - 5
    int range f0/1 - 5,g0/1 - 3
    int range f0/1,g0/1
    

    TBAM327 wrote: »
    does this go for GigabitEthernet also?

    As long as you have Gigabit Ethernet interface it will work.
  • Options
    dave0/0dave0/0 Registered Users Posts: 2 ■□□□□□□□□□
    OK - Here is what worked for me in PT.
    I was getting the same error from PT. It was a syntax error on my part (ugh). So, I ran the sh run to see how the spacing looks.

    sw(config)#int range fastEthernet 0/0 - fastEthernet 0/12
    interface range not validated - command rejected
    sw(config)#int
    sw(config)#interface fa 0/0 <
    I can't even get into an interface
    %Invalid interface type and number
    sw(config)#do sh run

    !
    interface FastEthernet0/1
    !
    interface FastEthernet0/2
    !
    interface FastEthernet0/3 <
    did a copy
    !

    sw(config)#int FastEthernet0/1
    sw(config-if)#exi <
    OK, not I can actually get an interface
    sw(config)#int raFastEthernet0/1
    sw(config)#int ra FastEthernet0/1 - 12
    sw(config-if-range)#sw acc vlan 10 <
    Working
    sw(config-if-range)#do sh vlan br
  • Options
    dave0/0dave0/0 Registered Users Posts: 2 ■□□□□□□□□□
    Meant to say in the above post sw(config-if)#exi <
    OK, now I can actually get an interface
Sign In or Register to comment.