default command

txn41655txn41655 Posts: 53Member ■■□□□□□□□□
hi, I am trying to reset a fastethernet port to default settings But I keep getting the Invalid input detected at '^' market. Could anyone help ? Thanks. icon_rolleyes.gif


Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#default interface fastethernet 0/5
^
% Invalid input detected at '^' marker.

Switch(config)#

Comments

  • TheNewITGuyTheNewITGuy Posts: 169Member ■■■■□□□□□□
    go into the interface configuration
  • atippettatippett Posts: 154Member
    Why is the ^ under the S in Switch? That command should work.
  • rob42rob42 Posts: 423Member
    atippett wrote: »
    Why is the ^ under the S in Switch?


    Because of the way the editor on this site works; it truncates leading spaces.
    No longer an active member
  • atorvenatorven Posts: 319Member
    You don't need to be in interface config for that command to work - Is that command supported in the code that you're running?
  • thomas_thomas_ CompTIA N+/S+/L+; CCNA R&S; CCNP R&S Posts: 904Member ■■■■■■□□□□
    What version of code are you running?
  • rob42rob42 Posts: 423Member
    The command works with IOS Version 12.1(6)EA2c, RELEASE SOFTWARE (fc1), running on a C2950 switch. It doesn't seem to be supported with CPT, mind. Are you running CPT or are you using 'real hardware'?

    What output are you getting from...

    (config)#default interface ?

    My 2950 output is...

    S2950_1(config)#default interface ?
    Async Async interface
    BVI Bridge-Group Virtual Interface
    Dialer Dialer interface
    FastEthernet FastEthernet IEEE 802.3
    Group-Async Async Group interface
    Lex Lex interface
    Loopback Loopback interface
    Multilink Multilink-group interface
    Null Null interface
    Port-channel Ethernet Channel of interfaces
    Tunnel Tunnel interface
    Virtual-Template Virtual Template interface
    Virtual-TokenRing Virtual TokenRing
    Vlan Catalyst Vlans
    range interface range command

    ... specifying the Fastethernet interface 0/10 shows...

    S2950_1(config)#default interface fa 0/10
    Building configuration...

    Interface FastEthernet0/10 set to default configuration
    S2950_1(config)#
    No longer an active member
  • txn41655txn41655 Posts: 53Member ■■□□□□□□□□
    I am using packet tracer.

    Switch#show version
    Cisco IOS Software, C2960 Software (C2960-LANBASE-M), Version 12.2(25)FX, RELEASE SOFTWARE (fc1)
    Copyright (c) 1986-2005 by Cisco Systems, Inc.
    Compiled Wed 12-Oct-05 22:05 by pt_team


    ROM: C2960 Boot Loader (C2960-HBOOT-M) Version 12.2(25r)FX, RELEASE SOFTWARE (fc4)


    System returned to ROM by power-on


    Cisco WS-C2960-24TT (RC32300) processor (revision C0) with 21039K bytes of memory.




    24 FastEthernet/IEEE 802.3 interface(s)
    2 Gigabit Ethernet/IEEE 802.3 interface(s)


    63488K bytes of flash-simulated non-volatile configuration memory.
    Base ethernet MAC Address : 0002.16E3.C76B
    Motherboard assembly number : 73-9832-06
    Power supply part number : 341-0097-02
    Motherboard serial number : FOC103248MJ
    Power supply serial number : DCA102133JA
    Model revision number : B0
    Motherboard revision number : C0
    Model number : WS-C2960-24TT
    System serial number : FOC1033Z1EY
    Top Assembly Part Number : 800-26671-02
    Top Assembly Revision Number : B0
    Version ID : V02
    CLEI Code Number : COM3K00BRA
    Hardware Board Revision Number : 0x01




    Switch Ports Model SW Version SW Image




    * 1 26 WS-C2960-24TT 12.2 C2960-LANBASE-M


    Configuration register is 0xF


    Switch#configure terminal
    Enter configuration commands, one per line. End with CNTL/Z.
    Switch(config)#default interface ?
    % Unrecognized command
  • atippettatippett Posts: 154Member
    None of the default commands are accepted in Packet Tracer.
  • atippettatippett Posts: 154Member
    You will have to use the no command on every command you've made on the interface.
  • rob42rob42 Posts: 423Member
    txn41655 wrote: »
    I am using packet tracer...

    Ahhh... This is just one of the reasons for using some real equipment. I've seen many posts suggesting that real equipment is not necessary... I know it's an expense that not everyone can justify, but (here in the UK, anyway) one can get some very inexpensive kit. I got two C2950 Switches for just £35, the pair.

    CPT is an excellent SIM, but there are some things that you can't do, and you've just discovered one of them.
    No longer an active member
  • rob42rob42 Posts: 423Member
    You could just edit the startup-config file.

    E.g:
    If your config has this entry...
    !
    interface FastEthernet0/0
    ip address 192.168.2.1 255.255.255.0
    duplex auto
    speed auto
    !

    ... if you edit it to...

    !
    interface FastEthernet0/0
    !

    ... that would effectively 'reset' that interface.
    No longer an active member
  • atippettatippett Posts: 154Member
    rob42 wrote: »
    Ahhh... This is just one of the reasons for using some real equipment. I've seen many posts suggesting that real equipment is not necessary... I know it's an expense that not everyone can justify, but (here in the UK, anyway) one can get some very inexpensive kit. I got two C2950 Switches for just £35, the pair.

    CPT is an excellent SIM, but there are some things that you can't do, and you've just discovered one of them.

    I haven't used CPT in awhile, but I believe you can't even use the show interfaces status command. Sigh.
  • rob42rob42 Posts: 423Member
    atippett wrote: »
    I haven't used CPT in awhile, but I believe you can't even use the show interfaces status command. Sigh.

    You're correct. There's quite a few very useful analytical commands that just aren't supported.
    No longer an active member
  • txn41655txn41655 Posts: 53Member ■■□□□□□□□□
Sign In or Register to comment.