Router Config?

Oakenfold

Diamond Member
Feb 8, 2001
5,740
0
76
Just got into doing router configs, what methodology do you use when doing a config file either in word or typing through a console connection?
I'm thinking something like this.

Hostname
Enable Secret
Enable password
vty login
password
line console login pw
login
Then start with the interfaces like
E0=define ip and subnet
s0= define ip and sub
if DCE define clock rate
Define routing protocol

etc.

Anyhow just looking to hear any ideas that help you MAKE sure you are doing everything.
other than after doing copy run start and show config heh.
I'm stoked that we are getting into this but I would like to develop a consistent method of configuring a router the using SAME procedure everytime minus the changes in topology.

 

spidey07

No Lifer
Aug 4, 2000
65,469
5
76
generally type them in at the console. Depending on the model interfaces are names differenetly from Fast0/0/3 to F0 to Serial 4/2/3:0 to Serial 0.

Also depending on the software verison used some commands are default and others aren't - it varies between releases.
 

Slvrtg277

Golden Member
Sep 9, 2004
1,004
0
0
The standard I usually use is

Hostname
Enable pass
line vty 0 4
line vty 5 15 (if applicable)
SNMP
TACACS+
MOTD
NTP


There's probably some other standard stuff that I put on all boxes that I'm leaving out, but I use a template anyway.


What you know about the configurations already is enough to get your ccna, with the basic networking knowledge added to it obviously.
 

blakeatwork

Diamond Member
Jul 18, 2001
4,113
1
81
Originally posted by: Oakenfold
Just got into doing router configs, what methodology do you use when doing a config file either in word or typing through a console connection?
I'm thinking something like this.

Hostname
Enable Secret
Enable password
vty login
password
line console login pw
login
Then start with the interfaces like
E0=define ip and subnet
s0= define ip and sub
if DCE define clock rate
Define routing protocol

etc.

Anyhow just looking to hear any ideas that help you MAKE sure you are doing everything.
other than after doing copy run start and show config heh.
I'm stoked that we are getting into this but I would like to develop a consistent method of configuring a router the using SAME procedure everytime minus the changes in topology.

In classroom labs, I almost never use notepad for configuring routers, as the exams require full text commands (ie copy running-configuration startup-configuration), unless it's for ACL's.

I usually:

enable
hostname <hostname>
enable secret <password>
no service config
no ip domain-lookup (isolated environment, don't need it resolving on a typo)
interface e0, e1, s0/0, so/1 etc (if DCE define clock)
router <RIP/IGRP/EIGRP>
network numbers
line console 0
<password>
login
line vty 0 4
<password>
login
copy running-configuration startup-configuration

then i add anything else we might be doing (Frame Relay, OSPF, PPP/PAP/CHAP etc)

then i go to the switches, setup any hosts required, ensure connection. Write ACL's, apply, ensure they work.

Wash rinse repeat. :D

I've always found it easier to make sure your base setup works properly before adding encryption, or other features.
 

Oakenfold

Diamond Member
Feb 8, 2001
5,740
0
76
Thanks guys!
I really appreciate it!
Guess what I forgot to do last night in class?
Copy run start, after reloading the previous config on a live router.
There are going to be some CCNA 3 and 4 peeps trying to hunt me down I think.
;)
 

Abix

Senior member
Oct 19, 2004
503
0
0
I type it in at the console every single time. Once you do it the first hundred times or so, the basics of setting up a router is pretty drilled into your head. Practice practice practice, and maybe one day you can be a CCIE! As for the way I put it in, well, here it is:

enable
config t
hostname routera
enable secret mysecretpassword
line console 0
password mypassword
login
line console vty 0 4
password myvtypassword
login
<ethernet configuration>
<serial configuration>
<routing protocol configuration>
copy running-config startup-config

Oh, and one strange thing about me is that when I configure the serial and ethernet ports, I dont 'no shutdown' them until Ive got the rest of it done on all the other routers I got running(unless Im using a link-state protocol like OSPF).
 

err

Platinum Member
Oct 11, 1999
2,121
0
76
don't want to forget

service password encryption

and some access list for telnet / ssh on your router to make it more secure.
 

blakeatwork

Diamond Member
Jul 18, 2001
4,113
1
81
Originally posted by: Oakenfold
Thanks guys!
I really appreciate it!
Guess what I forgot to do last night in class?
Copy run start, after reloading the previous config on a live router.
There are going to be some CCNA 3 and 4 peeps trying to hunt me down I think.
;)

Meh... it makes for good router recovery practice...

We had a CCNA Mod 2 kiddo erase flash on a 2611 I think it was... after we got over laughing at him.. :)P) we went through the steps of loading IOS... kinda neat actually..
 

Oakenfold

Diamond Member
Feb 8, 2001
5,740
0
76
Originally posted by: err
don't want to forget

service password encryption

and some access list for telnet / ssh on your router to make it more secure.

SSH?
I hope we haven't gone over that yet.
:eek:


Originally posted by: blakeatwork
Originally posted by: Oakenfold
Thanks guys!
I really appreciate it!
Guess what I forgot to do last night in class?
Copy run start, after reloading the previous config on a live router.
There are going to be some CCNA 3 and 4 peeps trying to hunt me down I think.
;)

Meh... it makes for good router recovery practice...

We had a CCNA Mod 2 kiddo erase flash on a 2611 I think it was... after we got over laughing at him.. :)P) we went through the steps of loading IOS... kinda neat actually..


Heh I hope that my friendly co-students felt that way.