okay, let’s see if this works like i meant for it to…
here’s the video from youtube’s servers (just to see if it makes a difference):
thoughts?
(yes, it’s an oxymoron)
July 15th, 2008 — cisco
okay, let’s see if this works like i meant for it to…
here’s the video from youtube’s servers (just to see if it makes a difference):
thoughts?
July 15th, 2008 — cisco
i’m getting ready to do a quick video tutorial/demo using camtasia and so i needed to configure my cisco 2509 terminal server. here’s how i did it, from a completely blank configuration:
Router>en
Router#configure terminal
Router(config)#hostname TERMSERV
TERMSERV(config)#interface loopback 0
TERMSERV(config-if)#ip address 192.168.254.254 255.255.255.255
TERMSERV(config-if)#exit
TERMSERV(config)#line tty 1 8
TERMSERV(config-line)#transport input all
TERMSERV(config-line)exit
TERMSERV(config)#ip host s1 2001 192.168.254.254
TERMSERV(config)#ip host r7 2007 192.168.254.254
TERMSERV(config)#ip host r8 2008 192.168.254.254
TERMSERV(config)#end
TERMSERV#copy running-config startup-config
success!
July 15th, 2008 — cisco
below i’m going to illustrate how to configure a dhcp server on a cisco router running ios.
in this example, i have two cisco 2621xm’s running c2600-ik9s-mz.123-22.bin. each router’s fastethernet 0/0 interface is plugged into a cisco 2950 switch (ports 1 & 2) on the same vlan.
r1, which has an ip address of 192.168.1.1 (/24), will be our dhcp server. it will be configured to hand out ip addresses in the range from 192.168.1.100 through 192.168.1.254. it will also hand out information identifying itself as the default gateway and dns server. our local domain name will be “ciscolab.local”:
R1#configure terminal
R1(config)#interface fastethernet 0/0
R1(config-if)#ip address 192.168.1.1 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#exit
here we see the fastethernet 0/0 interface coming up…
\*Mar 1 00:15:46.306: %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up
\*Mar 1 00:15:47.308: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
…let’s tell the router not to give out the ip addresses from 192.168.1.1 through .99…
R1(config)#ip dhcp excluded-address 192.168.1.1 192.168.1.99
…and set up the dhcp pool with our options…
R1(config)#ip dhcp pool DHCP_POOL
R1(dhcp-config)#network 192.168.1.0 255.255.255.0
R1(dhcp-config)#default-router 192.168.1.1
R1(dhcp-config)#dns-server 192.168.1.1
R1(dhcp-config)#domain-name ciscolab.local
R1(dhcp-config)#end
R1(config)#
…at this point, our work on r1 is done. now let’s go over to r2, configure the fastethernet 0/0 interface to use dhcp and bring it up…
R2#configure terminal
R2(config)#interface fastethernet 0/0
R2(config-if)#ip address dhcp
R2(config-if)#no shutdown
…we see fastethernet 0/0 come up…
\*Mar 1 00:23:39.746: %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up
\*Mar 1 00:23:40.748: %LINKPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
…and shortly afterwards, we see that r2 has obtained an ip address…
\*Mar 1 00:23:48.985: %DHCP-6-ADDRESS_ASSIGN: Interface FastEthernet0/0 assigned DHCP address 192.168.1.100, mask 255.255.255.0, hostname R2
R2(config-if)#end
R2#show ip interface brief
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 192.168.1.100 YES DHCP up up
FastEthernet0/0 unassigned YES unset administratively down down
…and we should be able to ping r1…
R2#ping 192.168.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP echoes to 192.168.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/11/16 ms
…success!