cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1065
Views
0
Helpful
5
Replies

Network Configuration Help.

RBM01991
Level 1
Level 1

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  
1 Accepted Solution

Accepted Solutions

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.

 

View solution in original post

5 Replies 5

Jaderson Pessoa
VIP Alumni
VIP Alumni
well, i think that wont work. Which device is connected to g0/0? Maybe a switch, i will suggest to connect your server on this switch.

As i undestood, you trying to use g0/1 port of your router to the same network as g0/0... but i think that doesn't work.
Jaderson Pessoa
*** Rate All Helpful Responses ***

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?

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.

 

Give this guy a gold star! Thank you so much, that worked out flawlessly.

Yes, it cant work...
Jaderson Pessoa
*** Rate All Helpful Responses ***
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card