LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-20-2017, 06:26 AM   #1
jim_cliff11
LQ Newbie
 
Registered: Jan 2004
Posts: 17

Rep: Reputation: 0
Public IP assigned through router DHCP - Head Banging


Hi,

I've just bought a replacement ML350 G6 server. The 6 HD' (RAID5) I've simply transplanted into the replacement server in the order I removed them from the old one. Booted up, loaded grub followed by OpenSuse. Everything is working fine.. apart from trying to set my static IP.

The server is set to DHCP and if I leave it to its own devices it's assigned an internal IP from the router eg. 192.168.0.112. Internet works!

To assign my public static IP as I've done countless times before:

Log into router.
Select MacAddr for router and set to assign public static IP.
Restart server (keeping it in DHCP mode).

On reboot server now has public IP, job done.

However when I do this via the router the server isnt assigned the public IP. Instead it has no IP at all and the network is unreachable. I cant understand this as I've done it this way for years.

I know the router is working properly as its assigning public static IP's to other devices on the network eg. camera.

Could it be a conflict on the server? I am getting the log "IPv4: Martian source 255.255.255.255 from 192.168.0.1, on dev eth0".

Can anyone shed any light, this is usually just a 5 minute job, but instead its being a nightmare.

Thanks
 
Old 12-20-2017, 07:09 AM   #2
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 2,803

Rep: Reputation: 1087Reputation: 1087Reputation: 1087Reputation: 1087Reputation: 1087Reputation: 1087Reputation: 1087Reputation: 1087
I assume you've checked everywhere on the server where the MAC address is used and ensured that the new hardware MAC address is being used instead of the one that the disks were transplanted from?
 
Old 12-20-2017, 07:37 AM   #3
jim_cliff11
LQ Newbie
 
Registered: Jan 2004
Posts: 17

Original Poster
Rep: Reputation: 0
Yes, I've check the MAC address for the adapter I'm using and this relates to the one selected on the router.
Could there be an old MAC address or card config saved within the filesystem thats causing issues?
 
Old 12-20-2017, 08:29 AM   #4
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 2,803

Rep: Reputation: 1087Reputation: 1087Reputation: 1087Reputation: 1087Reputation: 1087Reputation: 1087Reputation: 1087Reputation: 1087
Quote:
Originally Posted by jim_cliff11 View Post
Could there be an old MAC address or card config saved within the filesystem thats causing issues?
Yes, especially if the original server had multiple NICs. That's why I suggested checking everywhere on the server Ensure that the hardware address showing under ifconfig or ip link show (or the OpenSuse equivalents) show the MAC that the router is expecting to reply to.
 
Old 12-20-2017, 09:52 AM   #5
jim_cliff11
LQ Newbie
 
Registered: Jan 2004
Posts: 17

Original Poster
Rep: Reputation: 0
Router is using the correct MAC address.

If I remove the static IP from the server via the router control panel, and then restart the interface with 'ifdown eth0' followed by 'ifup eth0' I get assigned a random internal IP. Connection functions.

If I set the router to assign the public static IP to the server using DHCP, then restart the interface, when I run 'ifup eth0' I get the following error:

/sbin/ifup: line 232: 12273 Segmentation Fault $wicked_client ${opt_debug} ifup "$INTERFACE"

The interface still enables, but I get no IP and the connection is useless. It is important to note I only get this segmentation fault on the server when I set the router to assign a public static IP.

Confused.......
 
Old 12-20-2017, 09:55 AM   #6
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 2,803

Rep: Reputation: 1087Reputation: 1087Reputation: 1087Reputation: 1087Reputation: 1087Reputation: 1087Reputation: 1087Reputation: 1087
Well I'm out of ideas If it was my box I'd just be setting the static IPs on the server to get around the problem and then forget about it
 
Old 12-20-2017, 02:00 PM   #7
jim_cliff11
LQ Newbie
 
Registered: Jan 2004
Posts: 17

Original Poster
Rep: Reputation: 0
That's what I've done with partial success. Server is now connected to the net, but.....

Problem I've got when I set the static IP this way is that the router doesn't recognise the server as been connected to it. Thus, I cant forward any ports to my server.

It's a nightmare. Usually its a 5 minute job, done, forgotten about!
 
Old 12-20-2017, 02:14 PM   #8
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,569

Rep: Reputation: 2130Reputation: 2130Reputation: 2130Reputation: 2130Reputation: 2130Reputation: 2130Reputation: 2130Reputation: 2130Reputation: 2130Reputation: 2130Reputation: 2130
Quote:
Originally Posted by jim_cliff11 View Post
Problem I've got when I set the static IP this way is that the router doesn't recognise the server as been connected to it. Thus, I cant forward any ports to my server.
Your router doesn't let you forward ports to arbitrary IPs on the subnet? I've never seen that behavior before, and it's a really stupid design if that's the case. Maybe there's another menu option for port forwarding where you can just type in an IP without having to pick one from a list?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Banging My Head on a web server BeerSlinger Linux - Software 4 04-01-2008 09:12 AM
Suse 9 oracle 10g installation DHCP-assigned public IP addresses problem adurmus Linux - Server 1 11-18-2006 11:48 PM
eth0 ip assigned by dhcp , how would i know the ip address of the dhcp server where.. kublador Linux - Networking 14 05-16-2006 07:33 AM
What's my DHCP assigned IP and where is it? Buckyjunior Linux - Networking 7 02-27-2004 02:29 PM
dhcp assigned address nilbog Linux - Networking 4 04-02-2003 12:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration