Debian Configuration :: Setup Multiple Mac Address Over Single Ethernet Interface?
Jul 23, 2015
I want to configure multiple virtual ethernet interfaces over a single physical ethernet interface (eth0) and for each virtual interface the MAC address must be unique and the IP address must be Static.Finally all the virtual interfaces must be able to communicate both internally and externally and the traffic should be captured using wireshark.
I need to have such kind of setup to communicate devices individually using one physical ethernet device.
Because I was fiddling with few kernel modules like MACVLAN and MACVTAP and successfully enabled those modules and rebuild kernel. Using macvlan and macvtap I can configure virtual interfaces with unique mac address and static IPs but while capturing packets using wireshark interfaces behave weirdly.
For example say on HOST machine I have 1 physical interface and created 3 virtual interfaces as shown below.
Interfaces :
eth0 (physical ethernet interface)
IP: 192.168.A.A
MAC: aa:aa:aa:aa:aa:aa
[Code] ....
First from above interfaces I started pinging eth0 internally from host machine in which it worked as usually.
Second I did same externally from other machine which is connected to the same network of Host machine, and this did work as usually.
Third I pinged first virtual interface veth0 both internally and externally and this also works and after that I did check source and destination MAC address using wireshark tool-where both showed up there respective MAC address.
Now triggers the issue, where I pinged second virtual interface same like I did for first one, but this time ping was success and where as in wireshark tool the MAC address for veth0 is picked by veth1. This is where I got stuck and this issue happened for all the remaining virtual interfaces.
I couldn't see any virtual interface showing their respective MAC address, as of the remaining except the first virtual interface has been picking the first veth0 mac address.
View 5 Replies
ADVERTISEMENT
Dec 27, 2015
I'm renting a server which comes with 5 IP addresses, but only one network device. From what I can understand I'm able to create aliases by adding entries to /etc/networks/interfaces, I haven't tried I'm in the planning stages. Hypothetically, 192.168.22.30 is my primary IP and I want to set eth0:1 to have 192.168.22.31, and then after that I want to create a virtual machine (using kvm/qemu) that is able to communicate bidirectionally to the internet over eth0:1, and leave eth0 strictly for administrating (not for VM traffic).
The qemu guides I'm finding seem to assume that I want to use TAP or VDE, what I want to use is a sub-ip/alias. One guide I saw had me eliminate everything from eth0 and put it under br0. That would leave me unable to ssh into my server (and unable to administrate). Is there a way I can do something along the lines of: qemu [options] -net [option] -netdev=eth0:1 ?
View 1 Replies
View Related
Apr 4, 2016
I am having some troubles using iptable rules on two Servers that act as Gateways pointed to one backend server with only one interface.
To be more exact, i have 3 Servers, 2 of those have a public and a private interface, with different public ips but common private interface ( they connect to the same switch ), the last one only has 1 private interface and is connected to that same switch.
Those 2 servers also act as a gateway and a firewall for the private network.
My problem is that i cannot seem able to route traffic from both of those to the third one and back to the same public ip that the request came from ( effectivly using two gateways on the machine with only one interface ).
As a testing scenario i am using ferm for applying iptable rules that forward ssh traffic ( for example ) to the backend server, and it works well when i do it with one gateway.
When i apply something like this in /etc/network/interfaces on the backend server though:
Code: Select allauto eth0:0 eth0:1
# The primary network interface
allow-hotplug eth0
iface eth0:1 inet static
address 192.168.9X.XXX
netmask 255.255.255.0
broadcast 192.168.9X.255
network 192.168.9X.0
[Code] ....
Even though forcing selection of an interface from the backend server ( like curl --interface ) seems to work well, meaning that the request to the curl appear to happen from the correct public ip, i can still only use one of the public ips to access the server with the ferm rules. Ideally i should be able to ssh to the backend server from both public ips using their ferm rules for forwarding traffic to the backend server.
I feel like i am missing some details on routing that should happen on the firewalls as the backend server seems to be able to use both gateways to access the internet and receive replies from it.
View 2 Replies
View Related
Feb 13, 2010
I am new to Debian. I am trying out the live cd but can't seem to find how to connect to the internet. My setup is Ethernet card and DSL modem, no routers, no wireless. How do I set this up?
View 5 Replies
View Related
Jun 17, 2010
What is the Linux command to clear IP address of an interface without bringing it down and/or restarting network services. Seems strange ifconfig is able to change IP address but has no option to clear it, or am I wrong?
EDIT:As simple as ifconfig eth0 0.0.0.0. They should have put it in the man
View 3 Replies
View Related
Jan 20, 2011
We can add multiple IP address on a single NIC. Is there any limitation that is how many ip address I can add on a single NIC card??
View 1 Replies
View Related
Jun 12, 2010
I now have 2 desktops running debian. I have virtual servers running in desktop 1, and I am hosting my photos using Gallery2. I have copied Gallery2 and the mysql over to desktop 2. I have entered port forward to desktop 1 using port 80 (using my router), and desktop 2 using port 1000. I can only access Gallery2 in desktop1. If I tried to access Gallery2 in desktop 2, I got re-directed to desktop1.
Questions:
1. Are home routers capable of port forward to more than one computers in a home network behind the firewall of the router? It is Belkin N+ router.
2. Can multiple virtual servers be setup in 2 desktops?
View 4 Replies
View Related
Feb 16, 2010
I recently installed Ubuntu Server 9.10 with the intent of using it as a platform for running a couple of Windows XP virtual machines along with Linux/Ubuntu.
I had no problems getting the server installed. Had no problems getting the network up and running so that I had access to both my internal network as well as external connectivity to the internet. Had no problems getting a VM installed and putting Windows XP inside of it. Had no problems setting up a bridge between the WinXP virtual machine and the physical ethernet card (eth0).
What Im having trouble with is figuring out how to bridge from multiple VMs AND Ubuntu natively through one physical ethernet card.
When I set up the bridge, it knocks out the static IP address of the ethernet card that was set up initially with Ubuntu when first installed before the VM was created and installed. Therefore, connectivity within Ubuntu natively is lost.
Similarly, am having trouble figuring out how the second VM (also going to be running WinXP) is going to get its connectivity since it doesnt seem to like me setting up 2 bridges to the same physical ethernet interface card.
I need all 3 machines to have static IP addresses and be visible/accessible from the external network for either web/mail/dns/etc servers on the Ubuntu side and for remote PC control functionality on the VM side.
I have tried setting up alias ethernet interfaces (eth0:1, eth0:2, eth0:3) with static addresses which work fine from native Ubuntu in presenting multiple IP addressees, but it seems that Im not permitted to bridge to these alias interfaces.
View 5 Replies
View Related
Jun 18, 2014
I need to share internet connection through wired-ethernet with another computer which does not have a wifi card.
However, no eth* interface shows up on ifconfig. Even more surprinsingly, neither lshw nor lspci shows anything related to wired ethernet controller/adapter:
Code: Select alllshw -C network
*-network
description: Wireless interface
product: WiFi Link 5100
vendor: Intel Corporation
physical id: 0
bus info: pci@0000:03:00.0
logical name: wlan2
[Code[ ....
Why isn't my laptop's wired ethernet not showing? I have a Toshiba Satellite PSAG8U-04001W.
The installation of Debian wasn't originally on this system: it was on an older laptop whose motherboard fried, so I rescued the hard drive as well as the Debian installation. However, I doubt this should have anything to do with lspci not even detecting the wired eth controller.
View 2 Replies
View Related
Sep 1, 2011
My laptop was working fine on wireless till the userinterface changed and it defaulted to ethernet and now it won't let me go back on wireless How do i disable ethernet?
View 4 Replies
View Related
Oct 13, 2010
I have question about the UNIX sockets. my goal is to connect multiple sockets from a single client to a single server and keep them open...I'm not sure if that is possible to create or not. Do you have any suggestion or an example of code?
View 1 Replies
View Related
Jun 22, 2011
Recently I was forced to "downgrade" my AMD64 Squeeze installation to 32 bit Squeeze. The installation was (obviously) made from scratch. Everything else seems to be working fine, but there is only one cpu core out of four detected. On AMD64 kernel all four cores were functional. Now what?
$ uname -srv
Linux 2.6.32-5-686 #1 SMP Mon Jun 13 04:13:06 UTC 2011
$ cat /etc/debian_version
6.0.2
$ cat /proc/cpuinfo
[Code]....
View 6 Replies
View Related
Aug 15, 2010
lspci reports 07:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8056 PCI-E Gigabit Ethernet Controller (rev 12) 08:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8056 PCI-E Gigabit Ethernet Controller (rev 12) eth0 is picked up (light when I plug n the cable lights up). nothing for eth1.
other OSes on the same machine pick up both.
My /etc/network/interfaces file looks like
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
iface eth1 inet static
[Code]...
For those who are interested, I have an adsl modem and a router is connected to the modem. eth1 is a connection to the modem. eth0 to the router.
View 5 Replies
View Related
Jun 21, 2011
I've got a Dell Optiplex Desktop here, the CPU is a Intel(R) Core(TM) i5-2400 CPU @ 3.10GHz. The integrated ethernet here is from intel also, it's a 82579LM Gigabit Network Connection. This computer is running a Debian Squeeze 64bits, distrib sid, kernel 2.6.39-2-amd64.Well, here goes the story. I had a lot of trouble with the ethernet card, being very slow, and it just didn't work when i was using tftp. So I downloaded and compiled the latest driver available on Intel website. Currently with debian sid, the version for the driver ( e1000e ) is version: 1.3.10-k2. From Intel I got the version 1.3.17-NAPI.Alright, so I build it, and move the module manually to the right place, replacing the previous version at the same time ie :
$ sudo cp e1000e.ko /lib/modules/2.6.39-2-amd64/kernel/drivers/net/e1000e/e1000e.ko
However, there is is still something bothering me. When I want to check, after rebooting, that I did it right, here is what happens :
$ sudo ethtool -i eth1
driver: e1000e
version: 1.3.10-k2
[code]...
So, which one should I trust ? Is there something I didn't do properly when installing the module ? Or maybe I just don't understand ethtool and modinfo enough.
View 5 Replies
View Related
May 29, 2011
how to assign a address to my ethernet card all the options available
View 1 Replies
View Related
Jan 31, 2016
Is is possible, via iptables or something similar, to bind a service running on a specific port to a specific interface? My case: I use a VPN service for privacy. I would like to have all traffic except ftp and ssh to run over tun0. Ports 21 and 22 will need to be accessible to the outside world (eth0) while the VPN is running.
View 3 Replies
View Related
Apr 3, 2010
I'm facing a strange networking problem here. I'm running Debian Lenny in an OpenVZ container and my network setup is as follows:
link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
[code]...
View 4 Replies
View Related
Feb 12, 2016
I'm restoring an old TI Silent 700 terminal [URL] ... and have connected it to an RPi running the debian based Jessie release using a serial converter. After learning more than I wanted to about serial settings and support I now have it interfaced and communicating bidirectionally but have one last hurdle - proper support for a single case (uppercase only) terminal in agetty.
With the -U flag on it seems like the the login name is detected as needing conversion because lowercase login names work - but lower case passwords do not and once I get a bash prompt all input comes in as upper case. So the -U agetty flag only seems to apply to login name and is then forgotten (not passed on to login process or bash?) and various settings in stty like iuclc, xcase, iexten don't seem to work.
I'd really like to get this terminal working with native support but I'll also take a kludge of some kind (I've tried a tr pipe for example).
Here is what I think is the relevant portion of my systemd generator:
Code: Select all[Service]
ExecStart=-/sbin/agetty -U 300 %I $TERM
Type=idle
Restart=always
UtmpIdentifier=%I
TTYPath=/dev/%I
[Code] .....
View 1 Replies
View Related
Feb 11, 2010
I'm running Debian Lenny. When I exit run level 1 (single user mode), the system automatically continues into run level 2. I have browsed the init scripts and have yet to determine how this "magic" is performed. I would be grateful if a local guru would point me to how the scripts automatically proceed into run level 2 when exiting run level 1
View 4 Replies
View Related
Dec 26, 2015
DEVICES:
atheros AR9485
realtek rtl8111/8168/8411
atheros-firmware and firmware-realtek are installed from repo.
ifconfig does not show the network devices:
ifconfig -a does show them, i ran the commands ifconfig eth1 up and ifconfig wlan1 up, which resulted in them showing when typing ifconfig, however both still are not working.
(ifconfig)Also eth1 is only showing an inet6 address not an inet/ipv4 address and wlan1 doesn't show any.
Checked the bios and noticed that network devices were enabled so i don't think its my bios.
Also ran a SystemRescueCd which i got from here: [URL] .... With this live cd, the networking was working.
Added:
Code: Select allauto eth1
iface eth1 inet dhcp
allow-hotplug eth1
Now I get a net address...
View 1 Replies
View Related
Aug 17, 2010
i install devian squeeze with the netinstall iso, all work fine except for the auto-detect of my ethernet card.i have a mother asrock p4i45gv with an onboard ethernet card realtek rtl8139/810x family fast ethernet NIC.i try everithing, the ifconfig shows only lo, but ifconfig -a shows a eth0 any ideas?
View 12 Replies
View Related
May 25, 2011
Go to "/lib/modules/2.6.32-5-amd64/kernel/drivers/net/e1000e/" and delete the e1000e.ko-file
Then download [URL]
Take the newly downloaded e1000e.ko-file and move it to "/lib/modules/2.6.32-5-amd64/kernel/drivers/net/e1000e/"
And finally load the module with either: "# modprobe e1000e" or "# insmod e1000e".
You should now have a working ethernet connection.
If connection is lost on system restart try rmmod e1000e; modprobe e1000e
I've for the first time installed linux (debian) to my computer. And I have a problem with ethernet that I can't solve.
I have a Asus Sabertooth P67 motherboard with built in ethernet card, I cant find any drivers for linux, I've tried google, Asus support page etc, but can't anything that says it will work with my computer, just a alot of windows drivers.
where I can find the drivers? Or if there's another way to solve the problem. When installing Debian i could choose between different drivers but no one worked, I've also tried with my motherboard CD but there was just windows drivers...
CPU:
Intel i7 3.4 GHz.
View 14 Replies
View Related
Aug 30, 2011
I just updated my Squeeze install now the current kernel version is now 3.0.0-1-686-pae. I now no longer have any internet connection.I have tried the failsafe boots with no luck. I have tried the 2.6 kernels and have had no luck.I have tried to manually start the connections with no luck.I have booted off of a Squeeze Live CD and the connection works just fine.
View 4 Replies
View Related
Apr 18, 2010
After updating and subsequently restarting today, I can no longer bring up my wireless interface:
ifup wlan0
SIOCSIFFLAGS: Unknown error 132
Could not set interface 'wlan0' UP
SIOCSIFFLAGS: Unknown error 132
SIOCSIFFLAGS: Unknown error 132
Failed to bring up wlan0
iwconfig
lo no wireless extensions.
eth0 no wireless extensions.
wlan0IEEE 802.11abg ESSID: off/any
Mode: Managed Access Point: Not-AssociatedTx-Power=off
Retry long limit:7RTS thr: offFragment thr:off
Encryption key:off
Power Management:off
lsmod | grep iwl
iwl3945 77904 0
iwlcore127432 1 iwl3945
mac80211 180929 2 iwl3945, iwlcore
cfg80211 142905 3 iwl3945, iwlcore, mac80211
View 1 Replies
View Related
Jan 29, 2011
Suppose I have both a hardwired and a wireless network connection active on the same system at the same time. Can I tell my browser which one to use? Can I tell other programs which one to use? Or do they choose for themselves> Or does some automatic system protocol select which one to use for them?
View 5 Replies
View Related
Sep 12, 2015
My laptop only has a 100Mbit ethernet port, so I bought two external USB gigabit ethernet dongles in the hope of getting faster ethernet speeds. I have never had trouble with Linux supporting ethernet before, but neither of these devices are working. One is an ASIX AX88179 (by TrendNet) and the other is a Realtek RT8153 (by Anker). When I plug these devices in, I get network devices called enx00e04ca82300 or enxd8eb97b61e4d (instead of eth0/eth1 as I would expect).
I can manually set an IP address with "ifconfig enx00e04ca82300 x.x.x.x up" and manually add a route and my network connection works at gigabit speeds. However, the long enx... network device name does not appear to be valid in some sense: tools like dhclient or iptraf or network-manager fail with messages like "no such device" (well, network-manager just hangs). I don't know if it's because the name is so long or because they are not fully registered inside the kernel.
I have vmware workstation installed, and it does some strange things with network devices (setting up bridges for everything). I have disabled its services and see the same behaviour. This looks like a kernel bug to me but it's possible it is a vmware issue. vmware works fine with my wireless and 100Mbit ethernet (eth0 and wlan0).
Realtek device
Some dmesg for the Realtek device:
Code: Select all[10264.619420] usb 4-3.1.1: reset SuperSpeed USB device number 4 using xhci_hcd
[10264.634651] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff8800c4221a00
[10264.634653] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff8800c4221a48
[10264.634655] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff8800c4221a90
[10264.647842] r8152 4-3.1.1:1.0 eth0: v1.06.0 (2014/03/03)
[10264.647902] usbcore: registered new interface driver r8152
[10271.452198] IPv6: ADDRCONF(NETDEV_UP): enx00e04ca82300: link is not ready
[10275.094334] IPv6: ADDRCONF(NETDEV_CHANGE): enx00e04ca82300: link becomes ready
The Realtek device often crashes after just a few gigabytes have been transferred, with dmesg like this:
Code: Select all[10485.761603] net_ratelimit: 10 callbacks suppressed
[10485.761618] r8152 4-3.1.1:1.0 enx00e04ca82300: Tx status -71
[10488.694340] r8152 4-3.1.1:1.0 enx00e04ca82300: Tx status -71
[10488.711352] r8152 4-3.1.1:1.0 enx00e04ca82300: Tx status -71
[code]...
I have not investigated the ASIX device as much. However, my original 100Mbit ethernet has an ASIX chipset (AX88772) and that works perfectly. I have not observed the ASIX device crashing yet so I am using that for now (haven't used it for long yet though). But as before the device name appears to be invalid and I cannot run tools like dhclient. why two gigabit adapters with completely different chipsets would show up with long device names and support low-level stuff like ARP, ping, and static IPs, but fail with dhclient & network-manager? And the Realtek device seems to like crashing too.
View 0 Replies
View Related
Jan 30, 2016
So I have a GoFlex NAS driver, which according the specs has a theoretical maximum performance of 100 MB [URL] .....
I connected by ehternet to my PC (GNU/Linux, Debian 8 ) to do a backup.
I mounted it with cifs:
Code: Select allmount -t cifs "//goflexhome.local/GoFlex Home Personal" /mnt/gf/per/ -o credentials=/root/gfpass,uid=1000,gid=1000
And then tried rsyncing my home folder.
Code:
Select allDIR=/home
BACKUP_FILE=/mnt/gf/per/bck2016/
FLAGS=" --archive --one-file-system --acls --xattrs --numeric-ids --fake-super --progress --human-readable --ignore-existing --log-file="backup.log" "
FLAGS+=" ${DIRS} ${BACKUP_FILE}"
rsync ${FLAGS}
I then used iptraf to check the performance and I get miserable results (from the PC), even below 1 MB:
total 74.7 kbits
in 30.4 kbits
out 48.5 kbist
View 0 Replies
View Related
Jan 22, 2010
I upgraded testing today on my intel laptop. During the upgrade I got the message that the new kernel would require additional firmware, see attached. Is the solution for this to install the driver from Realtek? [URL] If so, the instructions said to check if the driver was already installed, but what does the output below mean?
conor@con-u3s:~$ lsmod | grep r8169
r8169 27596 0
mii 4664 1 r8169
View 3 Replies
View Related
Jul 9, 2011
I have a debian-powered NAS (Buffalo LinkStation) and I want to configure the following behaviour: When ethernet (eth0) is plugged in, connect and get a static ip address (ie. 192.168.0.11) When a wireless usb-adapter (wlan0) is plugged in, connect to a wireless router (ie. "Ankkanet") get another static ip address (192.168.0.12)
My /etc/network/interfaces :
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
[code]....
what could be causing wireless to disconnect when ethernet cable is unplugged?
View 3 Replies
View Related
Mar 15, 2016
Is this a problem of systemd or network-manager however when I started to see this alert I noticed the nm-applet doesn't start automatically anymore.
Code: Select allsystemctl status network
networking.service network-online.target network.target
network-manager.service network-pre.target
zagor@Debian-635:~$ systemctl status networking.service
● networking.service - Raise network interfaces
Loaded: loaded (/lib/systemd/system/networking.service; enabled; vendor prese
[Code] ....
View 5 Replies
View Related