networking - Wired internet not working on 16.04 after reboot - Ask Ubuntu


i can't ping pfsense box or 8.8.8.8. nic on motherboard working stopped after reset bought new intel pro nic worked, after reset after few days can't come up. pretty new linux, have been googling , trying days work. wanted reach out community before had start on since loading takes me 8 hours media share set correctly. ideas?

output of etc/network/interfaces is: (i having manually type since headless server can't ssh into).

(sorry below on individual lines, don't know how make them appear way in actual body) - total noob here.

auto lo iface lo inet loopback

auto enp129s0f0 iface enp129s0f0 inet static address 192.168.1.232 netmask 255.255.255.0 network 192.168.1.0 broadcast 182.168.1.255 gateway 182.168.1.1 dns-nameservers 182.168.1.1.8.8.8.8

(i know isn't set eth0, onboard nic still set that, , had working before stopped now).

i have swapped new spot on motherboard.

also tried of these no luck:

sudo ifdown -a sudo ifup -a sudo dhclient enp128s0f0 sudo /etc/init.d/networking restart sudo iptables -f

i manually edited /etc/udev/rules.d/70-persistent-net.rules include mac address of new card (it wasn't showing automatically) , kept kernal=='eth*', name="enp129s0f0"

ouput of iplink shows 8 items - down except lo unknown , enp129s0f0 up:

lo enp7s0 enp8s0 enp12s0 enp13s0 enp129s0f0 enp129s0f1 docker0

i may not have answer, know i'll you, provided see accurate.

udev

it not common need manipulate files in udev unless you're trying rename how interfaces appear or set custom values. keep in mind make networking operate in general, should not needed messing udev files. please, time modify system file, make backup first.

static addresses

you're using static address. unless have specific need static address, should use dhcp , set ip reservation router, based on mac address, instead. given current setup, did make ip reservation in router? if not have device same ip conflicting server. i've seen plenty of times in both home , corporate networks set static address within same range dhcp lease pool: game over. there ip address conflicts until 1 of devices goes away.

different network ranges

i don't know if typo or real. @ addresses. they're not in same range. of addresses start 192.168.x.x , others 182.168.x.x. doesn't matter if want 192 or 182, matter if not consistent every single device on network.

typically in home environment should see this:

auto lo iface lo inet loopback  auto <interfacename> iface <interfacename> inet dhcp 

if adamant on static addresses, make sure similar following:

auto enp129s0f0 iface enp129s0f0 inet static address 192.168.1.232 netmask 255.255.255.0 gateway 192.168.1.1 

^^ if above ^^ make sure set portion of address range on router (bottom end or top end) outside of dhcp range. cannot ever assign 192.168.1.1 because that's router (gateway) , shouldn't assign 192.168.1.255 because that's broadcast address. don't use 192.168.1.0 because means you're on subnet x.x.1.x , address .1 through .255 valid on network.

low end static range: 192.168.1.2 - 192.168.1.30 dhcp remaining: 192.168.1.31 - 192.168.1.254   -or- dhcp lower: 192.168.1.2 - 192.168.1.230 upper end static: 192.168.1.231 - 192.168.1.254 

those examples. carve out need. use static sparingly. if you're not managing big network, leave dhcp , set reservations in router or may encounter conflicts , or communication issues.

also, need read on systemd if above doesn't set straight. starting in 16.04, networking managed systemd, extent. that's why interface name appears enp129s0f0 , not old eth0 in 14.04 , earlier. result of predictive interface naming in systemd.


food thought

based on comments being new, not knowing how format on page, , not knowing how copy stuff exactly, i'll give few examples:

forgive me if know. basics in linux

command no options:     command  command file path:     command /filepath/file  command options , file path:     command -option /filepath/file  on command:     command -h        -or-     command --help  read manual page:     man command  show attached disks:     lsblk  show mount points:     mount  remove drive:     umount /path  change directory (folder):      cd /path  copy file:     cp /path-to-file /path-to-destination  make file:     touch /path/filename  make directory (folder):     mkdir foldername  edit file:     vim /path/filename  reference folder:     ./  reference parent folder:     ../ 

get flash drive plugged computer , type mount. find path flash drive , type cd / , append path see listed mount. type pwd , make sure you're inside path flash drive. here, use shell copy , file this:

if have copy files:     cp /path/file ./  if have to, make file:     touch ./myfile 

when need read output ifconfig or ls -la, write output file using pipe. (command + pipe + command + append + file)

example:     ifconfig -a | cat >> myfile  validate printing file screen     cat myfile  finished?     umount /filepath 

now, forum. above type, there "links, images, styles/headers, block quotes, etc...." read that. tells how format. ticks, 4 spaces, > symbols, etc....

good luck!


Comments

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User

sql server - "Configuration file does not exist", Event ID 274 - Super User