Cisco IOS Dhcp+routing question.

AtkinS

Gawd
Joined
Nov 7, 2007
Messages
811
Hi.

I have a standard connection, all connected up using another cisco device :) 1800 series.
But, well, I'm doing some lab training, and well, im used to using linux as routers, and my cisco skills isnt the best in the world either.
just tired of big boxes doing the routing, and planning to switch it out, but the 1800 is used as a switch >_< and testing out on the old 831 first.
ios running on the 1800= newest.
ios running on the c831= 12.3
The scenario is:"System image file is "flash:c831-123-7.T6.bin"

Modem(Bridge)->Router(C831)->devices.
192.168.2.253 192.168.1.1 dhcp range 192.168.1.100-200 excluded others.
I connected 3 devices, a wlan access point, a "server" and a computer.

If i want my server and access point to utilize the dhcp service and to get a ip like 192.168.1.2 for access point.
192.168.1.10 for the "server"
and the computer will get a dhcp whitin the dhcp range 100-200.

How to i configure dhcp leases to a specific mac address to be 192.168.1.2 and such on cisco routers?

2nd question, how to route so my modem is able to be connected inside the nat using C class ip ranges.

IT gets pat, nat, dhcp, wan, lan, dhcp range, ssh all that have i configured up.
 
Here's the normal pool and excluded addresses:
Code:
ip dhcp pool WIRELESS
   network 192.168.15.0 255.255.255.0
   default-router 192.168.15.1
   dns-server 65.32.1.x 65.32.1.x
!
ip dhcp excluded-address 192.168.15.1 192.168.15.99

Here's a reserved address:
Code:
ip dhcp pool LAPTOP
   host 192.168.15.55 255.255.255.0
   hardware-address 000c.29d7.e6c7
 
CODE:
ip dhcp pool LAN
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
dns-server 195.159.0.100
domain-name xxxxx.com
option 150 ip 192.168.1.1

CODE:
ip dhcp excluded-address 192.168.1.1 192.168.1.99
ip dhcp excluded-address 192.168.1.200 192.168.1.254


CODE:
ip dhcp pool t1w7
host 192.168.1.60 255.255.255.0
hardware-address 0001.29a3.33b9
client-name t1w7
default-router 192.168.1.1
domain-name imsc.com
dns-server 195.159.0.100

Still doesnt give out ip to the comp with the assigned address, gives out 192.168.1.104 the exclude ranges work.

Regarding the how to access the modem, i think i got it figured out, without switching vlans and so on for everytime i want to.
 
Last edited:
Back
Top