Skip to main content

Pasting IOS config files to hyperterminal

More
13 years 8 months ago #35328 by qaswed
Hi all,

Does anyone know how does pasting IOS config files as text to hyperterminal work? Does IOS executes command by command as they arrive? If it is true, consider the following commands:

interface f0/0
ip add 10.0.0.1 255.255.255.0
...

interface f1/0
ip add ...
...

That means that IOS executes second interface command in interface configuration mode of previous interface command, which cannot be accepted. What is actually true?

Thanx
Cheers
More
13 years 8 months ago #35331 by JamieP
it will work just fine

if you are in "interface confiuration mode" and type a command that does not belong to that mode, it will run the command in normal config mode. So the same could be said for

[code:1]interface fa0/1
switchport mode access
switchport access vlan 15
no ip domain-lookup[/code:1]

even though the "no ip domain-lookup" command isnt part of the interface config, it will still accept it and run the no ip domain-lookup in global config mode

hope that makes sense

Jamie Parks
Network Engineer, UK
More
13 years 8 months ago #35332 by qaswed
Replied by qaswed on topic Pasting IOS commands
Yes,

IOS is made to work like that, it now makes sense

Thank you
More
13 years 8 months ago #35340 by SujitNair
yes you dont have to worry about it. IOS parses commands line by line, but nowadays it comes out the interface or rotuer config mode if the command is not meant for that mode.
Time to create page: 0.142 seconds