12-27-2019 10:59 AM
Good afternoon Team,
Long story short, I've had to move a my server to my outside closet where my 3945e is located. Now in my living room I have my main switch setup (4948), and I used to have it connected to that, so I thought "Well since I don't have this connected to my switch anymore, since the cable run would be astronomically long, why don't I just connect it directly to my router?" therefore I did.
So I have my management IP on gi0/0 setup, but my server is connected to gi0/1 and the interface is setup to get its IP address from DHCP. So I thought it would just dole out an IP address to my server, but it doesn't. My server has a gateway, but no IPv4 configuration listed in IP config.
So what am I doing wrong here? Here's the running config of the router. I'll also post the show ip int brief output.
Building configuration... Current configuration : 2047 bytes ! ! Last configuration change at 12:28:25 EST Fri Dec 27 2019 ! version 15.1 service timestamps debug datetime msec service timestamps log datetime msec no service password-encryption ! hostname HomeRouter-001 ! boot-start-marker boot system flash boot system flash:c3900-universalk9-mz.SPA.157-3.M5.bin boot system flash:c3900e-universalk9-mz.SPA.157-3.M5.bin boot-end-marker ! ! enable secret 5 $1$d.au$f/puBghk0fn9ztVqTehNn. ! no aaa new-model ! clock timezone EST -5 0 ! crypto pki token default removal timeout 0 ! ! no ipv6 cef ip source-route ip cef ! ! ! ip dhcp excluded-address 192.168.1.1 192.168.1.30 ! ip dhcp pool internal network 192.168.1.0 255.255.255.0 default-router 192.168.1.1 dns-server 8.8.8.8 8.8.4.4 netbios-name-server 192.168.1.1 lease infinite ! ! ip name-server 8.8.8.8 ip name-server 8.8.4.4 ! multilink bundle-name authenticated ! ! ! ! ! voice-card 0 ! ! ! ! ! ! ! license udi pid C3900-SPE150/K9 sn FOC15505HWS license accept end user agreement license boot module c3900 technology-package datak9 ! ! ! redundancy ! ! ! ! ! ! ! ! ! ! ! interface GigabitEthernet0/0 ip address 192.168.1.1 255.255.255.0 ip nat inside ip virtual-reassembly in duplex auto speed auto ! interface GigabitEthernet0/1 ip address dhcp duplex auto speed auto ! interface GigabitEthernet0/2 ip address dhcp duplex auto speed auto ! interface FastEthernet0/0/0 description INTERNET ip address dhcp ip access-group MY-WAN in ip nat outside ip virtual-reassembly in duplex auto speed auto ! ! ip forward-protocol nd ! no ip http server no ip http secure-server ! ip dns server ip nat inside source list 1 interface FastEthernet0/0/0 overload ! logging esm config access-list 1 permit 192.168.1.0 0.0.0.255 ! ! ! ! nls resp-timeout 1 cpd cr-id 1 ! ! control-plane ! ! ! ! mgcp profile default ! ! ! ! ! gatekeeper shutdown
Interface IP-Address OK? Method Status Protocol GigabitEthernet0/0 192.168.1.1 YES NVRAM up up GigabitEthernet0/1 unassigned YES DHCP up up GigabitEthernet0/2 unassigned YES NVRAM down down FastEthernet0/0/0 XXXXXXXXXXXXX YES DHCP up up NVI0 192.168.1.1 YES unset up up
Solved! Go to Solution.
12-27-2019 12:35 PM
Hi there,
The interfaces on this router are all routed and can therefore not share the same subnet.
Try adding the following config:
! interface GigabitEthernet0/1 ip address 192.168.2.1 255.255.255.0 ip nat inside ip virtual-reassembly in duplex auto speed auto ! ip dhcp pool internal2 network 192.168.2.0 255.255.255.0 default-router 192.168.2.1 dns-server 8.8.8.8 8.8.4.4 netbios-name-server 192.168.2.1 lease infinite ! access-list 1 permit 192.168.2.0 0.0.0.255 !
...this will give your server a lease in the 192.168.2.0/24 subnet range. The server will have a default gateway of the router which will then be able to send traffic to either the devices connected to Gi0/0 or out of fa0/0/0 via NAT.
cheers,
Seb.
12-27-2019 11:10 AM
12-27-2019 11:41 AM
Yeah gi0/0 has my switch connected to it, which is in another room inside the house. So what you're saying is, there's no way to have the different ports on the router all function as if they were a part of the same network?
12-27-2019 12:35 PM
Hi there,
The interfaces on this router are all routed and can therefore not share the same subnet.
Try adding the following config:
! interface GigabitEthernet0/1 ip address 192.168.2.1 255.255.255.0 ip nat inside ip virtual-reassembly in duplex auto speed auto ! ip dhcp pool internal2 network 192.168.2.0 255.255.255.0 default-router 192.168.2.1 dns-server 8.8.8.8 8.8.4.4 netbios-name-server 192.168.2.1 lease infinite ! access-list 1 permit 192.168.2.0 0.0.0.255 !
...this will give your server a lease in the 192.168.2.0/24 subnet range. The server will have a default gateway of the router which will then be able to send traffic to either the devices connected to Gi0/0 or out of fa0/0/0 via NAT.
cheers,
Seb.
12-27-2019 01:24 PM
Give this guy a gold star! Thank you so much, that worked out flawlessly.
12-27-2019 12:46 PM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide