General :: Virtual Interface Usage - Two Ethernet Ports
Jun 28, 2010
I need to ask about Virtual Interface, as I need to use my ethernet interface to act as two ethernet ports. As I need to give eth0 an IP address and give eth0.5 another ip address, and make some natting and other issues. Can I do that with the same interface?
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?
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
I booted an OS from a live CD. The OS boots successfully but eth0 fails to start. I checked lspci, it outputs these Ethernet card details:
(Broadcom Netextreme II BCM5716 GBabyte ethernet)
ifconfig -a returns only the loopback interfaces lo and sit0. The output of dmesg | grep -I 'eth' is:
"Netfront : initializing network ethernet driver"
When I run service network restart I get:
"Obtaining IP for lo [FAILED] WARNING: Deprecated config gile /etc/modprobe.conf , all config files belong into /etc/modprobe.d/ Device eth0 does not seem to be present, delaying initialization [FAILED]"
The output of MII-tool -v is:
No MII interface found.
I was also able to find the kernel module bnx2.ko. I did insmod and lsmod lists it.
I am facing an issue with 100% CPU usage under my system when running VirtualBox. Here are some further details:
My System Information:
CPU 1 name: Intel(R) Pentium(R) Dual CPU T2310 @ 1.46GHz CPU 1 level 1 cache size: 32K Data cache. 32K Instruction cache. CPU 1 level 2 cache size: 1024K Unified cache. CPU 1 Mips: 2926.20
[Code].....
Well, each time I run Windows XP from my VirtualBox, I see the CPU usage at almost 100%. I experience a slow system even if no programs were running on my hosted Windows XP version.
I was wondering if there is a way for me to play with the settings so I can slightly enhance the performance. My PC is relatively fast under my Linux operating system. I need to know if there are some tips that I may follow when configuring the settings of my VirtualBox so i can achieve better results.
know of a way in Linux to have a virtual ethernet (e.g., eth0:1) appear as a "real" ethernet (eth1)? I ask because I have an old Shuttle box that only has one mobo ethernet and no way to add more. I'd like to use it in my Oracle RAC lab, but RAC requires two physical ethernets. You can't fool it with eth0 and eth0:1. RAC won't setup correctly if there's only one eth adapter, so I'm wondering if there is a way to fake two ethernets. I do not care about performance or reliability - it's my home lab. I fully realize that this violates every principle of HA, but I'm just using it to study. Worst case, I can get a USB dongle ethernet adapter, but I'd prefer to avoid the cost if possible.
When I create virtual ethernet interface and do a ping -I <v_int> <host> the outgoing address is the one of the physical interface and NOT the virtual interface.Is there no chance that trafic will go out with virtual interface address??Incoming trafic is done well i.e. responds to the virtual interface have the virtual address.
My problem is that I have 2 modems and want to check both default gw behind the modems. If I do a "normal" ping both are reachable over default route even the modem which is not the default route will not work because ping goes over the working modem.So I have 2 routing tables and want to route the virtual interface to one modem the other to the other modem
I'm having trouble getting my Ubuntu 10.04 machine (Sony Vaio VGN-SR490) to connect to the Internet by way of an Ethernet cable connected directly to my router.
I'm able to connect to the Internet using this same cable using a Windows machine, so there's something wrong with the way Linux is configured.
How do I got about figuring out what the problem is and solving it?
Here are my network settings on Linux:
$ ifconfig lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host
[Code].....
It looks like the network adapters list is empty. I will now install both Windows XP and Ubuntu Linux dual-boot. I'm still not able to access the internet, even through Windows. I'm wonder if this could be a hardware problem with the computer or a problem with the router itself. Other computers can connect to this same router, and work fine. (That's how I'm posting this after all!)
I found multiple sites explaining how to add IPs to a network interface as virtual interface like eth0:0. However I can add IPs to an interface as well using the ip command: ip a a 192.168.2.2/24 dev eth0 What I want to know is how I can make this persistent on rhel/centos.
I have set 'ONBOOT=no' in interface script '/etc/sysconfig/network-scripts/ifcfg-eth0:2' but my interface bring up at boot time, what is the problem , I have checked it 3 or 4 diff os/machine but the same issue. Can anyone please help me to disable virtual IP's at boot time that network script make it up every boot time.
I've had an issue in KDE where each time I restart my computer, I get 5-7 notifications that it wasn't able to connect to my ethernet port. (Or something close to that) I think it's trying to connect to my marvell port over and over. Has this happened with anyone else? I think I remember this happening with Ubuntu as well only it only tried to connect to that port once and then stopped trying.
I have a system with one (sometimes two) ethernet ports, that works happily in an old Fedora 5 build. But I can't get it to work on a new Centos 5.4 build. Original system: One dedicated ethernet port on card always connected to the systems dedicated equipment and no external access (the system is the DHCP master for that network). An optional second USB dongle that is a second ethernet port, used for debugging and development. (This is a DHCP client with full conectivity. In /etc/sysconfig/network-scripts I have ifcfg-eth0, ifcfg-eth1 and a route-eth0. Neither of the ifcfg files needs an explicit HWADDR, which means the same ones work for all boxes. And when one needs to be connected to the network all is fine.
The system is being moved to Centos 5.4, most is working with minimal change, but I am having problems with the ethernet ports. If it only has the on board ethernet connected, all is fine. If you have the USB dongle connected things go wrong: This system brings up the USB ethernet first, and tries to assign it to eth0 (which fails), and then brings up the on board ethernet as eth1 (which also fails). I have tried forcing the behaviour of the network by setting the HWADDR(s), but this does not result in the on board coming up as eth0, it comes up as __tmpxxxx as follows:
Currently the only solution is to unplug the USB dongle through restart and plug in afterwards, and this wont work when the unit is remote and in the field.
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.
My first one is the network: Our routers' ethernet ports are all in use and I cant get one of them. So Im asking you what I need to buy. Our router now is a speedport w701v. The new router should have wlan and good working LAN. It shouldnt be very expensive... give me some tips what I should look for (because Im very new with router...) and maybe give me a link where they tested many routers (and where I can trust the results).
I have 2 (some future machines will have 4) ethernet ports. I want to have them configured such that if any gets unplugged, as long as at least one of them is plugged in, it can reach the network (even if via a different IP address), and it can be reached (at least when trying a working IP address). I tried this for /etc/network/interfaces:
Code: auto lo iface lo inet loopback auto eth0 iface eth0 inet static
I am trying to setup a VPN on my FC 12 box. Looks like getting openvpn to work behind NAT is as easy as just forwarding the ports. Do I need to forward any specific protocols (GRE, etc)? Also, can I do this with one Ethernet port (IE: RJ-45 jack), or do you recommend a second ethernet port? I could add in another PCI ethernet card if it makes it easier. Anyone know if a single ethernet jack will work or do I need two?
I have a Opensuse 11.4 workstation that has two ethernet ports and I was wondering if there is the chance to use the other ethernet port as a switch to a Mac/PC?
I had 2 Ethernet ports and neither of them were working on a fresh build a friend was struggling with. After reading the suggestions to fix the issue and thinking that there had to be an easier way I had an epiphany. I would go to my spare parts box and bring out my old Netgear GA311 and pop it into the slot. So after searching for 10 minutes I found it and installed it. Booted up the rig and it found that right away (SWEET) now that's not the fix anybody can do that, once I updated Ubuntu the on-board ports started working (that's what I'm using now). I can't explain what the update did but for a few bucks a used card in the tool box might not be a bad idea! Mother board is a Gigabyte GAX58A-UD5 Rev.1 Personally I'm an ASUS guy.
Just recently got a new rig, and was wondering, is there a way to share internet via a switch. I understand the problems with switches is that they dont assign IPs like routers do, but if my ubuntu machine worked like a router by assigning IPs, could it work? Current setup is as such. I have one ubuntu machine with 1 ethernet port (this shall be the main preferably) 1 mac with a single ethernet port 1 modem with a single ethernet port that cannot assign more than one IP address. And a 5 port switch. Would it be possible to place the modem into the switch, get the ubuntu machine to receive the IP address, and broadcast all other address' to everyone else via the same switch and ethernet cable?
I'm currently using Ubuntu 9.1, and a motherboard which has two Ethernet ports on it.
What I would like to do is bridge these ports, so I can plug in another Ethernet cable and run it to an unmanaged switch in my room (handy for my work laptop when on-call and building other PCs, etc).
I.e. Router --> 8-Port Switch --> My PC. Eth 0 --> 192.168.1.100 static Eth 1 --> 5-Port Switch --> DHCP
I believe this is the config to make the ports bridged:
If I uncheck and recheck "Enable Networking" in the Network Manager Applet 0.7.996 I would expect the wired network to disconnect (which it does) and reconnect (which it does NOT). So I tried sudo ifdown eth0 and got
Quote:
Ignoring unknown interface eth0=eth0.
ifconfig tells me
Quote:
eth0 Link encap:Ethernet HWaddr 00:25:64:e8:18:2c inet addr:192.168.0.112 Bcast:192.168.0.255 Mask:255.255.255.0 inet6 addr: fe80::225:64ff:fee8:182c/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
[code]....
so I am at a loss. How do I stop and restart the network interface short of rebooting the machine?
I have loaded Suse 10.3 on a system that has 4 Ethernet ports, all Intel chipsets. 2 ports have the 82571 chipset, 1 port has the 82573 chipset and the last one has the 82567. The 82567 chipset can use the e1000 driver and the 8257x chipsets require the e1000e driver. We are only actually using the 82571 ports.
When the system is booted, the 82567 seems to get bound to the e1000 driver and the 82573 gets bound to the e1000e driver. Doing an "lsmod" I see both drivers loaded. It appears the 82571 drivers are getting bound to the e1000 driver which is a major problem. They work for a while but eventually they lock up with enormous error counts according to "ifconfig". How I know the e1000 driver is bound to the 82571 ports is that when I remove it(modprobe -r e1000) and then try to use one of them, I get a "network unreachable". When e1000 is loaded these ports seem to work fine. I tried modding the file in /etc/sysconfig/hardware that corresponds to the PCI address of these ports(i.e., hwcfg-bus-pci-0000:08:00.0) to force the module to e1000e, but no luck there either.
I've a server with two NIC. Sometimes the server becomes unreacheable. When this happens, I did a reboot and then it works.. but when looking at the interface status (with ifconfig command), I've notice several "errors".So, I've tried to change NIC.. but the problem occurs again.I've also changed the port on the switch.
I booted an OS from live disk. The OS boots successfully but eth0 fails to start. I checked lspci , it outputs the exact ethernet card details :(Broadcom Netextreme II BCM5716 Gigabyte ethernet)
Ifconfig -a returns only loop back interface lo and sit0. The output of dmesg | grep -i 'eth' is :"Netfront : initializing network ethernet driver"
I was also able to find the kernel module bnx2.ko. I did insmod and lsmod lists it. I am not sure what exactly is the issue or how to debug this problem. Any assistance or pointer will be helpful. Thanks for your time.
I'm just installed Fedora 14 64-bits into a server which come with Multiple network interfaces, I'm found that the naming of each network interface is not in sequences in what I'm thought (e.g: the on board network interfaces name as Eth5 and Eth6, the additional card ethernet port name from Eth0 - Eth1 and etc). How to name the interfaces as what I wish to? What should I install to allow me to rename the interfaces.
I recently installed Vortexbox, which includes fedora release 14.Got everything working, but could not access the network. After a bit of searching, found that "ifup eth0" activated the interface.To do this on boot, I have added this command, together with my "mount /dev/..." command in file /etc/rc.localIt works OK, but I cant help thinking there's a proper way of doing this?
I have UDP packets generated on Machine A that are addressed to Machine B (unicast) that I capture with PCAP. After transporting this raw data to Machine B (via RF modem) I'm trying to reinject the original UDP on Machine B through a tap0 interface. The capture and transport are all working fine. BUT once on the destination machine, the reinjected ethernet packets are NOT being received by a local UDP server. this is my socket creation :
"data" is an unsigned char array that contains the original packet data received from pcap, which includes the ethernet header, ip header, udp header, and payload data. after the call to write() completes, Wireshark on Machine B sees a correctly formatted (checksums and all) UDP packet when listening to tap0 - ie. no lines highlighted in red. *BUT* - a UDP server i have running on Machine B never receives the reinjected UDP datagram. (I have verified that this server works, by using a simple local udp generator app.) is there something wrong with how I'm creating the socket and/or writing the data back out to the tap0?
I tried to setup a connection as below but face some problem (probably route table setting incorrect). Hope if anyone could shed the light.Basically, I have a PC1 (.1) and PC2 (.130) connected via a PC router. PC router has 2 interfaces: wireless (.2) and ethernet (.129). PC1 connects to PC router via LAN cable/wireless interface, while PC2 connects to PC router via cable. This settings try to simulate 1 wireless connection along the path (and because PC2 is too old to support wireless interface, we need a PC router). These interfaces are all under same 172.16.130.x subnet.
I'm trying to create EoIP interface on ubuntu so i can create a simple tunnel to my mikrotik router. Is there anyone know how or even done that? If EoIP is not possible, is there any other simple way?
I had already read and thought about doing it with OpenVPN, but when I read the community documentation for OpenVPN on ubuntu 10.10, I fear it won't connect the tunnel to mikrotik OpenVPN server, since OpenVPN on ubuntu uses 2 certificate and 2 key files(as i read on the docs), but mikrotik configuration, i can see only 1 certificate can be applied on. This confuses me and make me decide to use EoIP(but i can't find any tutorial/docs about it). I don't actually need the encryption and security, i just need to create a tunnel for ubuntu and mikrotik.