Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I Need configuration router 1721 1

Status
Not open for further replies.

hamidit

IS-IT--Management
Oct 17, 2007
6
AE
HI >
I have router 1721 with ethernet 0 wan ip :217.194.137.171
and fastethernet 0 lan ip 192.168.0.1
i need configure router to distribute DHCP AND Intenet to device ( PC 20) .
 
ok here you go


conf t
int eth0
ip nat outside
int fa0/0
ip nat inside
access-list 1 permit 192.168.0.0 0.0.0.255
ip nat inside source list 1 interface eth0 overload
ip dhcp excluded-address 192.168.0.1
ip dhcp pool DHCP_POOL
network 192.168.0.0 255.255.255.0
default-router 192.168.0.1
dns-server X.X.X.X Y.Y.Y.Y
hostname BLAH

end


try that if it works make sure you do a copy run start.
be sure to change the x.x.x.x and y.y.y.y so valid dns servers for your isp.
 
thanks plshlpme
i test this command it not work !
he distribute the dhcp but the user can't get the internet


if you have a more idea please send it to me
 
Hello
Post your present config.So as to make the trouble-shooting easier for us.
Regards
 
this it my config
Password:
Router#sh run
Building configuration...

Current configuration : 1090 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Router
!
boot-start-marker
boot-end-marker
!
enable secret 5 $1$0sqL$hL4xtQndPCL.kPNzAejul0
enable password whatever
!
no aaa new-model
!
resource policy
!
mmi polling-interval 60
no mmi auto-configure
no mmi pvc
mmi snmp-timeout 180
ip subnet-zero
ip cef
!
!
no ip dhcp use vrf connected
ip dhcp excluded-address 192.168.0.1 192.168.0.50
!
ip dhcp pool mypool
network 192.168.0.0 255.255.255.0
dns-server 192.168.0.1 255.255.255.0
domain-name testserver.testserver
default-router 192.168.0.2
lease 7
!
!
ip name-server 217.194.129.2
!
!
!
!
interface Ethernet0
ip address 217.194.137.171 255.255.255.248
ip nat outside
half-duplex
!
interface FastEthernet0
ip address 192.168.0.2 255.255.255.0
ip nat inside
speed auto
full-duplex
!
ip classless
ip route 0.0.0.0 0.0.0.0 192.168.0.3
ip route 0.0.0.0 0.0.0.0 Ethernet0
!
ip http server
!
!
control-plane
!
!
line con 0
password whatever
login
line aux 0
line vty 0 4
login
!
end

and this error show

*Nov 27 14:20:03.243: %PQUICC_ETHER-1-LOSTCARR: Unit 0, lost carrier. Transceive
r problem?
 
router>en
router#conf t
router(config)#no ip route 0.0.0.0 0.0.0.0 192.168.0.3
router(config)#access-list 10 permit 192.168.0.0 0.0.0.255
router(config)#ip nat inside source list 10 int e0 overload
router(config)#int e0
router(config-if)#duplex auto
router(config-if)#exit
router(config)#int fa0
router(config-if)#duplex auto
router(config-if)#end
router#wr

You are missing the nat acl and applying nat to PAT (overload). Also, all interfaces should be auto duplex, not hard-coded. Speed and duplex auto.

Burt
 
thank's burtsbees
but the duplex not work auto
and the internet it still not receive in host
 
originally you had your gateway set to 192.168.0.1.. now your interface is .2..

and you are giving them the .1 as dns servers.. you need to assign your public dns servers from your isp.

im sure you ip connectivity is probably fine right now but your dns resolution isnt and thats why you cant browse.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top