Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
04-24-2017, 03:09 PM
|
#16
|
LQ Newbie
Registered: Apr 2017
Location: UK
Distribution: Custom
Posts: 22
Original Poster
Rep:
|
lol I thought it may have been as simple as that but best ask in case its some linux term I've never seen before!
So have thought about this but the debian vm is using systemd where this is using systemv so the ifconfig files are completely different.
Just compared the ip link output and they are indeed different:
Debian:
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN mode DEFAULT group default qlen 1000
Broken:
2: sit0@NONE: <NOARP,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1
The BROADCAST vs NOARP sticks out.
Doesn't the ARP Cache deal with ip to mac conversion for network devices to talk at hardware level?? layer 2 or 3 is it? can never remember they layer numbers from the top of my head!
|
|
|
04-24-2017, 03:25 PM
|
#17
|
LQ Newbie
Registered: Apr 2017
Location: UK
Distribution: Custom
Posts: 22
Original Poster
Rep:
|
Quote:
Originally Posted by linux4evr5581
I think he means compare the system that works, with the system that doesn't.. Network Troubleshooting Steps: 1) ping localhost (127.0.0.1) to make sure your OS's TCP/IP stacks...
|
loop back ping and its own ip ping absolutely fine.
nothing else is reachable.
no link-local address as not using dhcp, static set in ifconfig
no ip conflicts as the dhcp server scope doesn't cover the address I'm using.
|
|
|
04-24-2017, 03:28 PM
|
#18
|
Member
Registered: Sep 2016
Location: USA
Posts: 275
Rep:
|
ARP is used for mapping a network address (e.g. an IPv4 address) to a MAC address, and it's a process happens for every router until you reach destination, and vice versa. The hardware/IP addresses are stored in the ARP cache.. In IPv6 the functionality of ARP is provided by NDP (neighbor discovery protocol)..
Last edited by linux4evr5581; 04-24-2017 at 03:58 PM.
|
|
|
04-24-2017, 03:58 PM
|
#19
|
LQ Newbie
Registered: Apr 2017
Location: UK
Distribution: Custom
Posts: 22
Original Poster
Rep:
|
Quote:
Originally Posted by linux4evr5581
ARP is used for mapping a network address...
|
so could the NOARP comment listed next to the sit0 adapter be related to this issue then?
|
|
|
04-24-2017, 04:01 PM
|
#20
|
Member
Registered: Sep 2016
Location: USA
Posts: 275
Rep:
|
A quick look at "man ip link" then search "NOARP" there are option(s) "arp on" and "arp off".. Maybe try the "arp on" option to turn your arp on.
Last edited by linux4evr5581; 04-24-2017 at 04:03 PM.
|
|
|
04-24-2017, 04:18 PM
|
#21
|
LQ Newbie
Registered: Apr 2017
Location: UK
Distribution: Custom
Posts: 22
Original Poster
Rep:
|
so I've tried to set both arp and multicast on (just based on the debian compare) and hasn't made a difference.
I have noticed that the debian ip link output shows the mac address of the NIC where the broken build only shows
link/sit 0.0.0.0 brd 0.0.0.0
so tried to set the address using:
ip link set dev sit0 address 00:15:5d:69:5b:07
But it returns
Invalid address length 6 - must be 4 bytes
also tried setting it with LLADDR=00:15:5d:69:5b:07 and MACADDR=00:15:5d:69:5b:07 (wasn't sure what version applied to my ifconfig) variables in the ifconfig file but still nothing.
I going to compile the net-tools package so I can run arp to see what it has listed.
Thanks for the help! will post the results in a min.
|
|
|
04-24-2017, 04:31 PM
|
#22
|
Member
Registered: Sep 2016
Location: USA
Posts: 275
Rep:
|
To change the mac address first bring your interface down then type "ifconfig sit0 hw ether YourMacHere" then bring sit0 back up.
|
|
|
04-24-2017, 04:50 PM
|
#23
|
LQ Newbie
Registered: Apr 2017
Location: UK
Distribution: Custom
Posts: 22
Original Poster
Rep:
|
Quote:
Originally Posted by linux4evr5581
type "ifconfig sit0 hw ether YourMacHere" then bring sit0 back up.
|
returns ifconfig: only one address allowed for interface 'sit0'
compiled net-tools and arp returns nothing with both the -a and -e swtiches
|
|
|
04-24-2017, 05:03 PM
|
#24
|
Member
Registered: Sep 2016
Location: USA
Posts: 275
Rep:
|
That's odd as that command is meant to spoof (or change) your mac address, not try and add new one.. Make sure you brought the interface down via "ifconfig sit0 down" then back up again after. "Sit0 is a device that's used to tunnel IPv6 through an IPv4 connection", not sure if you knew that or if that'll help you..
Last edited by linux4evr5581; 04-24-2017 at 05:09 PM.
|
|
1 members found this post helpful.
|
04-24-2017, 05:12 PM
|
#25
|
LQ Newbie
Registered: Apr 2017
Location: UK
Distribution: Custom
Posts: 22
Original Poster
Rep:
|
Ah ok, no wasn't aware.
May point to a driver or udev issue then if that's the only other interface showing bar loop back.
I'm removing sit from the kernel and rebuilding at the mo, will keep you posted!
|
|
|
04-24-2017, 05:14 PM
|
#26
|
Member
Registered: Sep 2016
Location: USA
Posts: 275
Rep:
|
Yeah that has to be the problem
|
|
|
04-24-2017, 05:33 PM
|
#27
|
LQ Newbie
Registered: Apr 2017
Location: UK
Distribution: Custom
Posts: 22
Original Poster
Rep:
|
Ok so removed sit from the kernel and the sit0 interface has buggered off as expected.
Now I only have the lo interface.
lspci shows the nic
I've recreated the /etc/udev/rules.d/70-persistent-net.rules but running /lib/udev/write_net_rules with the correct mac address and eth0 as the interface name.
ip link and ifconfig only show the lo adapter?!?
|
|
|
04-24-2017, 05:34 PM
|
#28
|
LQ Newbie
Registered: Apr 2017
Location: UK
Distribution: Custom
Posts: 22
Original Poster
Rep:
|
oh and I also modified the /etc/sysconfig/ifconfig file to match the new interface name
|
|
|
04-24-2017, 05:48 PM
|
#29
|
Member
Registered: Sep 2016
Location: USA
Posts: 275
Rep:
|
Maybe check to see if networking is enabled in your VM's BIOS (Hyper V has a BIOS if im not mistaken), beyond that I couldn't tell ya.. Just Google around for how to bring eth0 back, im sure you'll get it working..
|
|
|
04-24-2017, 06:57 PM
|
#30
|
LQ Newbie
Registered: Apr 2017
Location: UK
Distribution: Custom
Posts: 22
Original Poster
Rep:
|
Finally got it working!
Was a missing driver after all that should of googled what sit was to start!
Even re-enabled sit on the kernel and I'm able to pass traffic perfectly!
Many thanks for your help linux4evr5581
|
|
|
All times are GMT -5. The time now is 10:26 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|