Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › [Solved] Server won't connect to network
New Posts  All Forums:Forum Nav:

[Solved] Server won't connect to network - Page 2

post #11 of 28
Thread Starter 
Running sudo dhclient eth0 as we speak, I have my laptop connected at the moment via wireless connection with an IP address of 192.168.1.3. My desktop is also connected (but not on at the moment, but last night internet worked fine). I do have the router assigning an IP of 192.1681.1.100 for the server, I am going to try and turn that off see if it helps.
post #12 of 28
Thread Starter 
Also I don't know what NAT is, so I don't know if that is enabled or not.
post #13 of 28
Quote:
Originally Posted by thestraw0039 View Post

Also I don't know what NAT is, so I don't know if that is enabled or not.

Well, if other computers connected to the router are able to access the internet with 192.168.xxx.xxx IP, you have NAT enabled. smile.gif

So basically, at the moment it seems like your router don't like your server. Possibly some mis-configuration on the router. You told earlier that your router assigns that certain ip to your server; try removing this rule, any anything related to your server, and then reboot the router just to be sure, and after the router have fully rebooted, try running sudo dhclient eth0 on the server again, to see if your router gives your server a proper IP this time.
Minimachine
(9 items)
 
  
CPUMotherboardGraphicsRAM
i7-5775C Asus Maximus VII Impact EVGA GTX1080 Founders edition 2x8GB Kingston HyperX 1600Mhz 
Hard DriveMonitorPowerCase
Samsung 950 PRO 512GB M.2 NVMe 3x Asus PB287Q 4k Silverstone 600W Strider SFX NCASE M1 Rev 2 
  hide details  
Reply
Minimachine
(9 items)
 
  
CPUMotherboardGraphicsRAM
i7-5775C Asus Maximus VII Impact EVGA GTX1080 Founders edition 2x8GB Kingston HyperX 1600Mhz 
Hard DriveMonitorPowerCase
Samsung 950 PRO 512GB M.2 NVMe 3x Asus PB287Q 4k Silverstone 600W Strider SFX NCASE M1 Rev 2 
  hide details  
Reply
post #14 of 28
After looking over this thread, here are the details I have gotten from your particular setup:
Code:
Gateway: 192.168.1.1
Netmask: 255.255.240.0
Server IP: 192.168.1.100

Going by the Arch Wiki for manual setup of an interface:
Code:
# all of these should be run as root or with sudo
# Set the interface down to begin with
ip link set dev eth0 down

# bring up the interface
ip link set dev eth0 up
ip addr add 192.168.100/20 dev eth0
ip route add default via 192.1681.1

This should allow you to now ping IP addresses not only in your network but on the internet as well. (assuming the information I have parsed from this thread is correct).

Now try pinging this ip address: (one of google's IP addresses) 74.125.25.104

If this does not work, then you have more serious netwook issues. frown.gif
Router
(12 items)
 
  
Reply
Router
(12 items)
 
  
Reply
post #15 of 28
Thread Starter 
ip addr add 192.168.1.100/20 dev eth0 won't work. When I enter that I am unable to ping the router, I have to use ip addr add 192.168.1.1/24.

sudo dhclient eth0 sits for a while and then returns nothing.

Deleted setting the IP address to 192.168.1.100 didn't help either.

Thanks for all your help guys, I am trying to run linux mint off of a USB and see if I can get a connection there. Stupid Ubuntu didn't work for some reason, and now trying to put Mint on my USB with DD is telling me its done in 2 seconds but doesn't write anything so I am going to my Windows and Universal USB Installer to make it. I'll report back when up and running.
post #16 of 28
Quote:
Originally Posted by thestraw0039 View Post

ip addr add 192.168.1.100/20 dev eth0 won't work. When I enter that I am unable to ping the router, I have to use ip addr add 192.168.1.1/24.

sudo dhclient eth0 sits for a while and then returns nothing.

Deleted setting the IP address to 192.168.1.100 didn't help either.

Thanks for all your help guys, I am trying to run linux mint off of a USB and see if I can get a connection there. Stupid Ubuntu didn't work for some reason, and now trying to put Mint on my USB with DD is telling me its done in 2 seconds but doesn't write anything so I am going to my Windows and Universal USB Installer to make it. I'll report back when up and running.

Putting an ISO image on a USB stick with dd woudlnt work out-of-the-box anyway, since CD's, and thus ISO iamges, are ISO 9660 (also known as ECMA-119), also referred to as CDFS filesystem, where as you need, for example, a FAT32 filesystem to have your USB stick working at all. There are tools on linux for doing this 'conversion', but if you have a windows machine at hand, it's probably easier to just use it. smile.gif
Minimachine
(9 items)
 
  
CPUMotherboardGraphicsRAM
i7-5775C Asus Maximus VII Impact EVGA GTX1080 Founders edition 2x8GB Kingston HyperX 1600Mhz 
Hard DriveMonitorPowerCase
Samsung 950 PRO 512GB M.2 NVMe 3x Asus PB287Q 4k Silverstone 600W Strider SFX NCASE M1 Rev 2 
  hide details  
Reply
Minimachine
(9 items)
 
  
CPUMotherboardGraphicsRAM
i7-5775C Asus Maximus VII Impact EVGA GTX1080 Founders edition 2x8GB Kingston HyperX 1600Mhz 
Hard DriveMonitorPowerCase
Samsung 950 PRO 512GB M.2 NVMe 3x Asus PB287Q 4k Silverstone 600W Strider SFX NCASE M1 Rev 2 
  hide details  
Reply
post #17 of 28
Thread Starter 
Quote:
Originally Posted by Microx256 View Post

Putting an ISO image on a USB stick with dd woudlnt work out-of-the-box anyway, since CD's, and thus ISO iamges, are ISO 9660 (also known as ECMA-119), also referred to as CDFS filesystem, where as you need, for example, a FAT32 filesystem to have your USB stick working at all. There are tools on linux for doing this 'conversion', but if you have a windows machine at hand, it's probably easier to just use it. smile.gif

Really, the arch wiki recommends making it that way. It seemed to work, I was just getting some weird error with in initramf unable to open /dev/sda. It's happening with both Ubuntu 12.10 64 bit and Mint 16 32 bit. Everything Google is showing is about USB 3 which I don't have or bad download, but I checked the MD5SUM. Just not my week with this server, I guess I'll try to see if I can start arch.
post #18 of 28
Quote:
Originally Posted by thestraw0039 View Post

Quote:
Originally Posted by Microx256 View Post

Putting an ISO image on a USB stick with dd woudlnt work out-of-the-box anyway, since CD's, and thus ISO iamges, are ISO 9660 (also known as ECMA-119), also referred to as CDFS filesystem, where as you need, for example, a FAT32 filesystem to have your USB stick working at all. There are tools on linux for doing this 'conversion', but if you have a windows machine at hand, it's probably easier to just use it. smile.gif

Really, the arch wiki recommends making it that way. It seemed to work, I was just getting some weird error with in initramf unable to open /dev/sda. It's happening with both Ubuntu 12.10 64 bit and Mint 16 32 bit. Everything Google is showing is about USB 3 which I don't have or bad download, but I checked the MD5SUM. Just not my week with this server, I guess I'll try to see if I can start arch.

Well could be that the image is not a "real cd image" but a sort of "hybrid image", which can be put on a usb stick or optical media, but is not bootable on very old systems. Since all ISOs i have tried to put on a usb stick have failed with using dd only, but manually copying files over and installing a proper bootloader etc have worked fine on those.

that "unable to open /dev/sda could be related to this issue as well, but I suppose not. I had a similar error when I moved the HDD from my old server hardware to a new one. I had to just re-install the system. rolleyes.gif Though, that wont explain why a live-cd/install would do the same thing..
Minimachine
(9 items)
 
  
CPUMotherboardGraphicsRAM
i7-5775C Asus Maximus VII Impact EVGA GTX1080 Founders edition 2x8GB Kingston HyperX 1600Mhz 
Hard DriveMonitorPowerCase
Samsung 950 PRO 512GB M.2 NVMe 3x Asus PB287Q 4k Silverstone 600W Strider SFX NCASE M1 Rev 2 
  hide details  
Reply
Minimachine
(9 items)
 
  
CPUMotherboardGraphicsRAM
i7-5775C Asus Maximus VII Impact EVGA GTX1080 Founders edition 2x8GB Kingston HyperX 1600Mhz 
Hard DriveMonitorPowerCase
Samsung 950 PRO 512GB M.2 NVMe 3x Asus PB287Q 4k Silverstone 600W Strider SFX NCASE M1 Rev 2 
  hide details  
Reply
post #19 of 28
Thread Starter 
Micro I never added those three IP addresses to /etc/resolv.conf. What should I put in there, I was confused on what exactly should be in there? Here's all the information of my stuff, just tell me which three to use

Router IP: 192.168.1.1
IP Subnet: 255.255.240.0
DNS: 111.111.111.111
222.222.222.222
333.333.333.333

I am assuming its the three DNS IPs correct so it would be:

nameserver 111.111.111.111
nameserver 222.222.222.222
nameserver 333.333.333.333

I noticed that after I enter the commands
Code:
sudo ifconfig eth0 down
sudo ip addr add 192.168.1.1/24 dev eth0
sudo ifconfig eth0 up

I can ping the router, but I never get an IP from the router, even after the sudo ip route add default via 192.168.1.1.

Lastly IPtables did update last time I ran an update, but I don't really know much about IPtables, sudo iptables -L brigs up a ton of information, but I don't know how to read any of it, anything I should be looking for specifically? I tried turning of UFW and that didn't help at all.
post #20 of 28
Thread Starter 
Also everytime I restart the server I have to reenter this information, is there a way to save it?
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Linux, Unix
Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › [Solved] Server won't connect to network