Saturday, June 26, 2010

3.5.2 scripts

hostname HQ
no ip domain-lookup
enable password cisco
banner motd #Welcome to Router HQ#
line console 0
password cisco
login
line vty 0
password cisco
login
int fa0/0
ip add 192.168.9.129 255.255.255.224
no shutdown
int s0/0/0
ip add 192.168.9.161 255.255.255.224
no shutdown
clock rate 64000
int s0/0/1
ip add 192.168.9.97 255.255.255.224
no shutdown
clock rate 64000
end
copy running-config startup-config
startup-config
reload
y


hostname BRANCH1
no ip domain-lookup
enable password cisco
banner motd #Welcome to Router BRANCH1#
line console 0
password cisco
login
line vty 0
password cisco
login
int fa0/0
ip add 192.168.9.33 255.255.255.240
no shutdown
int fa0/1
ip add 192.168.9.49 255.255.255.240
no shutdown
int s0/0/0
ip add 192.168.9.66 255.255.255.252
no shutdown
clock rate 64000
end
copy running-config startup-config
startup-config
reload
y


hostname BRANCH2
no ip domain-lookup
enable password cisco
banner motd #Welcome to Router BRANCH2#
line console 0
password cisco
login
line vty 0
password cisco
login
int fa0/1
ip add 192.168.9.1 255.255.255.224
no shutdown
int fa0/0
ip add 192.168.9.17 255.255.255.240
no shutdown
int s0/0/1
ip add 192.168.9.70 255.255.255.252
no shutdown
clock rate 64000
end
copy running-config startup-config
startup-config
reload
y



int s0/0/1
ip add 192.168.9.102 255.255.255.252
no shutdown
clock rate 64000

2 comments:

  1. fyi (as I found out for myself) in the case of the serial ports, they should be imputted as -- s0/0 instead of s0/0/0! The lab is that picky.

    ReplyDelete
  2. The clock rate only applies to the HQ side of the serial connection

    ReplyDelete