Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do you delete lines from the config?

Status
Not open for further replies.

colthirtytwo

IS-IT--Management
Mar 28, 2002
24
0
0
US
I have several lines in my config that are giving me problems. They are lines that I made mistakes on during the initial setup when typing them in. I want to delete them, but I don't know how. I've tried typing "no" and then the line that I want to remove, but it's still there.
 
Just put "no" before the command.
For example:
Router#conf t
Router(config)router ospf 10
Router(config)^Z
Router#

Router#conf t
Router(config)no router ospf 10
Router(config)^Z
Router#


 
Can you please post your config that you have a problem with.

If you are typing the "no" then the config you want to delete and it still does not leave, that config may be dependant on another command to be removed first. This is what I would do if I could bring the router down and have a "CONSOLE connection "NOT" a telnet connection to the router.

1) First copy config by doing a show run then edit the config in a text editor or doing a copy run tftp. Then open it up and clean it up by deleted the unwanted configs.

2) Do a erase startup-config then reload your router. Then I would put in the config line by line and verifying that the unwanted configs do not come back, if they do you have a IOS issue or a default config issue with a config command. Let me know, but first copy the config and post it up but modify it before you do so first.

 
Here is my config. I deleted the config, and just started all over again.
I'm also having a problem where I can't get to any addresses where the first octet is 12, and they can't get to me. When I do a tracert it will die at the eth0/1 address. I can ping my own outside ip(the first octet is 12), and the gateway ip(the first octet is 12). I haven't found any other addresses that start with 12 that I can reach.

I'm new to cisco, so I can't find the problem. Maybe some of you pro's can help me out.

Thanks in advance,
Col. Thirtytwo





version 12.0
service config
service timestamps debug uptime
service timestamps log uptime
service password-encryption
!
hostname router
!

!
!
!
!
!
ip subnet-zero
no ip finger
ip name-server xxx.xx.xxx.x
ip name-server xxx.xx.xxx.x
!
!
!
interface Ethernet0/0
ip address 12.(external) 255.255.255.0
ip access-group 105 out
no ip directed-broadcast
ip nat outside
no ip mroute-cache
no cdp enable
!
interface Ethernet0/1
ip address 192.168.0.1 255.255.255.0
no ip directed-broadcast
ip nat inside
no ip mroute-cache
no cdp enable
!
ip default-gateway 12.xxx.xxx.xxx
ip nat pool global 12.(external) 12.(external) netmask 255.255.255.0
ip nat inside source list 5 pool global overload
ip nat inside source static tcp 192.168.0.11 80 12.(external) 80 extendable
ip nat inside source static tcp 192.168.0.11 25 12.(external) 25 extendable
ip nat inside source static tcp 192.168.0.11 110 12.(external) 110 extendable
no ip classless
ip route 0.0.0.0 0.0.0.0 12.(gateway)



ip route 192.168.0.0 255.255.0.0 192.168.0.2
ip route 192.168.0.0 255.255.255.0 12.(gateway)
no ip http server
!
access-list 105 permit ip any any
access-list 105 deny ip 192.168.0.0 0.0.0.255 any
access-list 105 deny ip 192.168.0.0 0.0.255.255 any
access-list 5 permit 192.168.0.0 0.0.0.255
access-list 5 permit 192.168.0.0 0.0.255.255
no dialer-list 1 protocol ip permit

no cdp run
!
password
login
transport input pad v120 telnet rlogin udptn
line aux 0
line vty 0 4
password
login
!
end
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top