LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 04-24-2017, 02:09 PM   #16
Buddidge
LQ Newbie
 
Registered: Apr 2017
Location: UK
Distribution: Custom
Posts: 22

Original Poster
Rep: Reputation: Disabled

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!
 
Old 04-24-2017, 02:25 PM   #17
Buddidge
LQ Newbie
 
Registered: Apr 2017
Location: UK
Distribution: Custom
Posts: 22

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by linux4evr5581 View Post
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.
 
Old 04-24-2017, 02:28 PM   #18
linux4evr5581
Member
 
Registered: Sep 2016
Location: USA
Posts: 275

Rep: Reputation: Disabled
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 02:58 PM.
 
Old 04-24-2017, 02:58 PM   #19
Buddidge
LQ Newbie
 
Registered: Apr 2017
Location: UK
Distribution: Custom
Posts: 22

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by linux4evr5581 View Post
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?
 
Old 04-24-2017, 03:01 PM   #20
linux4evr5581
Member
 
Registered: Sep 2016
Location: USA
Posts: 275

Rep: Reputation: Disabled
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 03:03 PM.
 
Old 04-24-2017, 03:18 PM   #21
Buddidge
LQ Newbie
 
Registered: Apr 2017
Location: UK
Distribution: Custom
Posts: 22

Original Poster
Rep: Reputation: Disabled
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.
 
Old 04-24-2017, 03:31 PM   #22
linux4evr5581
Member
 
Registered: Sep 2016
Location: USA
Posts: 275

Rep: Reputation: Disabled
To change the mac address first bring your interface down then type "ifconfig sit0 hw ether YourMacHere" then bring sit0 back up.
 
Old 04-24-2017, 03:50 PM   #23
Buddidge
LQ Newbie
 
Registered: Apr 2017
Location: UK
Distribution: Custom
Posts: 22

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by linux4evr5581 View Post
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
 
Old 04-24-2017, 04:03 PM   #24
linux4evr5581
Member
 
Registered: Sep 2016
Location: USA
Posts: 275

Rep: Reputation: Disabled
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 04:09 PM.
 
1 members found this post helpful.
Old 04-24-2017, 04:12 PM   #25
Buddidge
LQ Newbie
 
Registered: Apr 2017
Location: UK
Distribution: Custom
Posts: 22

Original Poster
Rep: Reputation: Disabled
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!
 
Old 04-24-2017, 04:14 PM   #26
linux4evr5581
Member
 
Registered: Sep 2016
Location: USA
Posts: 275

Rep: Reputation: Disabled
Yeah that has to be the problem
 
Old 04-24-2017, 04:33 PM   #27
Buddidge
LQ Newbie
 
Registered: Apr 2017
Location: UK
Distribution: Custom
Posts: 22

Original Poster
Rep: Reputation: Disabled
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?!?
 
Old 04-24-2017, 04:34 PM   #28
Buddidge
LQ Newbie
 
Registered: Apr 2017
Location: UK
Distribution: Custom
Posts: 22

Original Poster
Rep: Reputation: Disabled
oh and I also modified the /etc/sysconfig/ifconfig file to match the new interface name
 
Old 04-24-2017, 04:48 PM   #29
linux4evr5581
Member
 
Registered: Sep 2016
Location: USA
Posts: 275

Rep: Reputation: Disabled
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..
 
Old 04-24-2017, 05:57 PM   #30
Buddidge
LQ Newbie
 
Registered: Apr 2017
Location: UK
Distribution: Custom
Posts: 22

Original Poster
Rep: Reputation: Disabled
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
 
  


Reply



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
[SOLVED] Build Issue JaguarAnon AryaLinux 7 05-16-2016 08:14 PM
issue during RPM build your_shadow03 Linux - Server 2 05-17-2013 03:29 PM
Android - Build Issue linux_newbie79 Linux - Software 1 01-06-2010 06:18 AM
Glibc-2.3.6 build issue ---- wordexp.o not build Dhana_pal Linux - Software 0 12-27-2006 01:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:46 AM.

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
Open Source Consulting | Domain Registration