General :: Using Ifconfig Without Using 'ethX'

Jul 1, 2010

I'm a relatively inexperienced with Linux, coming from a Windows background, and I struggling to solve a troublesome issue attempting to set a static ip address to a Live Debian USB Key. I know it is possible to utilise the 'ifconfig' function to set a static ip address and use 'route' to set the gateway, e.g.

ifconfig eth0 10.0.0.40 up
route add default gw 10.0.0.130 eth0

..however in both cases I need to explicitly set the 'eth0' to point at the appropriate adapter. However, this is where my problem is...

I'm creating a persistent USB key using the Debian Live CD, I'm going to create an image and then duplicate that image to a load of other USB keys. Again, not a problem as such but there are cases where I need to specify a static IP address and gateway rather than using DCHP.

And here's where problem raises its head.

Because I've created the key on another machine it has allocated 'eth0' to a specific MAC Address (assigned in /etc/udev/70-persistent-net.rules) but when I place it into machine with a different network adapter it is assigning to 'eth1' (and this increments up).

a) call 'ifconfig' and 'route' without having to identify the adapter or

b) change the script that is creating '/etc/udev/70-persistent-net.rules' so it overwrites the 'eth0' entry with the only applicavle network adapter for the current hardware.

View 4 Replies


ADVERTISEMENT

General :: Sys/class/net/ethx/type - What Is It?

May 3, 2011

To get info of all etherhet adapters I am using C as well as info from various files in /sys/class/net/ethx directory.

There is a file name 'type' and has a number in it. Is it physical medium type of ethernet adapter? If yes, then how do I get string representation of that number? If no, then How do I determine physical medium type of ethernet adapter. For example 802.3, 802.5 etc.

View 1 Replies View Related

General :: Fedora Ethernet File Locations For Auto Eth - X - Devices Missing Ifcfg-ethX Files

Jul 24, 2010

Missing ifcfg-eth[2-5] fileset for ZNYX 345Q Quad Port 10/100 cards. I have showing in the gui network device that my ports for my ZNYX ZX345Q Quad Port card my ports are Auto eth2, Auto eth3 etc. My Motherboard and Intel cards show as System eth0 and System eth1.

There ARE corresponding entries for those in my /etc/sysconfig/network-settings/ directory, but there are not ifcfg-eth[2-5] files to correspond to these adapters. Can I just write my own files and that will do it?

How does Fedora 12/13 load these drivers into the kernel without having these ifcfg files?

I'd love to know if there is another way Fedora controls NICs / other system resources.

View 1 Replies View Related

General :: My Ifconfig Is Broken

Apr 8, 2010

I am running centos 4.5 Kernel. 2.6.18

My ifconfig is broken. and i dont know how to fix it.

I go into /sbin and i see the file but when i try and execute the command is says bash: ifconfig: command not found.

The permissions on the file are as follows:

View 11 Replies View Related

General :: Grep IPs From Ifconfig Output?

Mar 6, 2011

Following is my ifconfig output code...

I want to do some thing grep that I see the IP corresponding to each LAN card?
Is that possible?

View 8 Replies View Related

OpenSUSE Network :: Every Boot Requires New Ethx Config

Feb 27, 2010

new Install of 11.2 every time i boot i have to config network devices via Yast Control Center. I now have 8 eth configs for my one local net adapter. Why does the MAC address change each time? I cant use my routers built in MAC filter and MAC control functions if this keeps changing. So each time i boot i need to also go into my router and build a new MAC address profile based on the new MAC address before i get Internet access. Security to the point of no access...I hope this is just a bug in the system. I thought MAC addresses were firmware/device specific? What I need is one eth config that works each boot. And I need one MAC address that does not change between boots.

View 4 Replies View Related

Ubuntu Networking :: What's Relationship Between Ethx And Physical Net Cards

Apr 8, 2011

Do you know what's relationship between ethx and physical net cards? such as i have three net cards in the PC, named A, B, C. In which config file i could know that eth0 -> A, eth1 -> B, and eth2 -> C. Would the mapping relationship change after reboot? Is there any method i could change the mapping?

View 5 Replies View Related

Ubuntu :: How To Detect When EthX Interface Is Down From A Bash Script

Jun 11, 2011

I'm trying to write a small script and there's one part of it that makes me sick:

Code:

ifconfig eth$num down
sleep 6
ifconfig eth$num hw ether $mac
ifconfig eth$num up

The problem is that the ethX interface doesn't go down immediately after the first line is executed. So sometimes the change of MAC is called while ethX is up, no matter how big is the sleep time, which results in an error. Is there a way to make this work right?

View 1 Replies View Related

Red Hat / Fedora :: Distro Randomly Assigning Nic To Different Ethx After Each Reboot

May 22, 2010

how are nics assigned - eth0 - ethx I am having problem with my distro randomly assigning nic to different ethx after each reboot. Sometimes nice 1 is eth0 and sometimes is eth3.

View 4 Replies View Related

Red Hat :: Prevent Kudzu From Changing Ifcfg-ethX File?

Aug 31, 2010

Running Centos 5.5 64bit. Sometimes I boot this instalation in real machine, sometimas using vmware workstation. The problem is that these environments have different network interface cards - as soon as kudzu detects that network device changed it renames ifcfg-eth0 to ifcfg-eth0.bak and places new default ifcfg-eth0.

Is it possible to command kudzu to leave ifcfg-eth0 as it is ?

View 2 Replies View Related

General :: Application Besides Ifconfig To Change MAC Address?

Aug 13, 2011

I have to change my MAC address in order to get an IP lease via DHCP. But almost no installer CDs have ifconfig and dhclient.

ifconfig eth0 down
ifconfig eth0 hw ether 00:22:15:C0:27:23
ifconfig eth0 up
dhclient eth0

Is there any way to change a MAC address within Debian or Ubuntu installer CDs?

View 2 Replies View Related

General :: When Type Ifconfig - Invalid Argument

Jul 1, 2011

When i type 'ifconfig eth0 192.168.25.1 255.255.255.0' the outcome is 'SIOCSIFADDR : invalid argument', but when i check the ip address using /sbin/ifconfig i see the ip address is updated to 192.168.25.1 and is up. When i restart the linux box,the /sbin/ifconfig is reset to 192.168.100.1 .what should i do so that the linux box /sbin/ifconfig should not change when am rebooting.

View 12 Replies View Related

Slackware :: UDev Playing Hide And Seek With EthX Device

Feb 24, 2010

Some times I boot up, and udev has labelled what is usually eth0 as eth1. Of course, my rc.inet1.conf is configured for seeing internet at eth0, so no connection, quite obviously. Then I reboot and the device label is back to "eth0". Actually I'm still not able to get connected, even at eth0, despite my nameservers being OK, and the default route gateway being all OK. PS. I have a static ip address.

View 3 Replies View Related

General :: Get IP Address / Ifconfig And Ip Addr Show Are Not Working

Apr 23, 2010

This should be simple, but the machines we ssh into don't seem to have the regular commands.Are there any other simple ways I can use to get my IP?

View 7 Replies View Related

General :: Ifconfig Alias Address Assigned By DHCP

Aug 13, 2010

I would like to create several aliases to eth0, but have the addresses assigned by DHCP instead of being set to static IP's. Is this even possible? All the examples I've seen assign a static IP using the command:
ifconfig eth0:0 192.168.1.11 up

View 5 Replies View Related

General :: Ip Of The Box - Logged Into Sometimes - Bash: Ifconfig: Command Not Found

Aug 23, 2010

I am usually sshed into different boxes and i forgot what ip I am logged into sometimes. Is there a command I can type to give me the ip on the box I am on.

cat /etc/*release
CentOS release 5 (Final)

this failed

ifconfig | more
bash: ifconfig: command not found

View 3 Replies View Related

General :: Ubuntu - Cannot Execute Basic Commands (ps, Ls, Ifconfig) - File Not Found

May 4, 2011

When I try execute a variety of basic commands (including ps, ls, ifconfig, locate), I receive the error 'no such file or directory'.

Here are some suggestions that I've found online, that I have tried without success: I did a 'whereis ps' and found the file in the /bin/, and have checked that '/bin' appears when I do 'echo $PATH' I did a filesystem check which showed my hard drive as being clean I tried doing a 'sudo chmod 777 ps' but was told that I dont have permission. I don't think permissions for these files would have changed though (and I can't check as I can't run the 'ls' command).

View 3 Replies View Related

General :: Ifconfig Indicates Different Interrupt Number For Eth0 Than Proc Aqd Sys File System

Sep 22, 2011

On my system (OpenSUSE 11.4 - kernel 2.6.37) ifconfig indicates different interrupt number for eth0 than proc aqd sys file system.

ifconfig indicates 17:

proc fs indicates 43:

sys fs indicates 43:

Relevant part of lspci -vv output for irq 17 (this belongs to wlan0 and not to eth0):

Relevant part of lspci -vv output for irq 43:

View 1 Replies View Related

General :: IP Address Lookup - Where Are The Interface Configurations (set By Ifconfig, Not The Static Ones) Stored

Jan 28, 2011

where are the interface configurations (set by ifconfig, not the static ones) stored? I'm asking because I'm trying to understand, more broadly, the order of IP address lookup. If I ping the local machine (localhost, or one of the interfaces) no messages get sent out (at least according to wireshark), so some local lookup must be taking place.

View 1 Replies View Related

General :: Ifconfig Eth1 Down Unsetting And Setting The Running Flag On The Other Side?

May 29, 2011

PC1 and PC2 are linux pc's with linux 2.4 (or) 2.6 kernel installed on it.Observations are done on both 2.4 kernel and 2.6 kernel Problem explination:

1)PC1 "ifconfig eth1 down" on linux shell.
2)Check the "ifconfig eth1" on PC2
3) The running flags are unset first(disappear)and set(Re-appear) on the eth1 interface on PC2.

4) unset and set toggling happens with in short period of time about 1 or 2 secs.

This is clearly observed in linux 2.4 kernel with some time delay for the toggling, but 2.6 kernel this will happen every quickly..

[Code]..

View 3 Replies View Related

Red Hat / Fedora :: RHEL 5 Dual Networking - Ethx (0,1) Devices Are Brought Up Be Changed At Boot Time

Jun 3, 2010

I'm having an issue with dual networking on RHEL 5. My initial question is can the order the ethx (0,1) devices are brought up be changed at boot time, so I could bring up eth1 before eth0?

Some background: eth0 is DHCP'd and using DNS, basically this is my primary network. eth1 is an isolated subnet, with a manually configured IP which has no connection to eth0 or the outside world. When I bring up networking it first brings up eth0 and then eth1, what happens is eth1 becomes the 'primary' network of the host and I lose my connection to DNS/NFS/NIS and the outside world.

If I login and manually bring up eth1 first, then eth0 everyone is happy and connections work. So, I'm looking for a solution to either bring up eth1 before eth0 or somehow make eth0 my primary IP and not have it be clobbered by eth1.

View 2 Replies View Related

General :: Connecting To Network - Other Host Cannot Ping - Eth0 Not Showing In Ifconfig Report - Ver1.qu1

Jan 13, 2010

i know this is crazy, but im using a [URL] and have loaded a copy of "red hat linux 7" on the computer. i have no idea what kind of hardware config/spec stuff i should have in my immediate vision, and if i did i'm not sure how i would make sense of it all. linux loaded fine. didnt save drivers. eth0 not showing in ifconfig report, but lo is connecting to network, other host cannot ping linux and vice versus

can mount a cdrom, but not a usb flash dont quite understand how the load methods work involving /mnt/cdrom/"usbutils-0.86tar.gz" eth0 problems and gnome rpm stupidity keeps me from upgrading sys from old version to a newer version, cant even find the cmd to show me that info, sorry. have usb files i want to mount, dont know how to loAD THE CDROM FOLES, SO EVEN THAT ISNT WORKING OUT HAVE DISCS WITH howtos just need to stay focused on steps to get desired end result, while trying to learn too much info for what im currently doing between all the f!@#@ing windows i have open.

View 2 Replies View Related

General :: Ifconfig Return "unknown Interface: No Such Device"

May 9, 2010

I'm trying to install a Linux driver for my wireless network card (D-Link DWL-G510) on my Red Hat Linux 7.1 machine with a 2.4.37.9 kernel. I downloaded the serial monkey driver from the sourceforge site and was able to successfully compile the rt73 module and load it into the kernel. The problem now is that everytime I issue the command ifconfig wlan0 up it keeps returning with the following error message: wlan0: unknown interface: No such device.

I'm at a loss as to what to do here. I specifed wlan0 as the alias for the rt73 module in the modules.conf and also tried to load the driver with the command modprobe rt73 ifname=wlan0 (this specifies the interface name according to the instructions packaged in the driver), but the error message still keeps coming up.

Is there something else I need to do in Linux to configure the wlan0 part or is the module not recognizing the wireless network card? It would be quite strange if it is the later since all information from the Internet is indicating this is the linux driver I should be using for mentioned wireless card.

View 1 Replies View Related

General :: Allow Nisuser To Run "ifconfig" Conmand ?

Jun 8, 2010

HOW TO ALLOW NISUSER TO RUN "ifconfig" COMMAND? I HAVE CONFIGURED nisserver NOW i WANT TO ALLOW NISUSER TO RUN "ifconfig" cmd. what should i do?

View 5 Replies View Related

Networking :: IFConfig Changes Not Reflected In GUI

Dec 25, 2008

I have seen this in fedora 8/9 systems :- when I configure the eth0 card and give it a ip address using the ifconfig command from the terminal window and then check out the card from the network config GUI subsequently, it doesnot reflect the ip address as configured through the ifconfig command. However, the ifconfig command continues to show the new ip address as usual. If I need to change the ip address of the eth0 interface which should be the prefered mechanism - the ifconfig command or the GUI. Ofcourse I understand that, for the ifconfig command mechanism a line would have to be added to the rc. Local file so that the change is effective on every subsequent bootup.

View 4 Replies View Related

Networking :: Ifconfig RX TX Accuracy ?

Oct 3, 2010

I'm using ifconfig to monitor the bandwidth usage of one of my VMs, but lately I've notified that while the VM has absolutely no traffic the TX number in ifconfig is counting up.

Here it's the output of ifconfig on VM's interface in just 10 seconds interval:

After 10 seconds:

View 4 Replies View Related

Networking :: Using Ifconfig From Crontab ?

May 14, 2010

I have a command that I run to renew my mobile broadband connection. It works from the terminal, but not in my crontab. My connection usually drops out after being connected for a week or so. So I tried to make a cron job to check the connection every 15 minutes (when there is an IP address on interface ppp0, then it is connected, so if there is nothing, I restart network-manager and it reconnects)

works from my terminal, but not when run as a cron job. If the schedule the above script to run every 15 minutes, it restarts network manager every 15 minutes, so I think ifconfig isn't working from cron. Is there some caveat about ifconfig in cron?

View 1 Replies View Related

Debian :: Network Do Not Take IP - IFConfig Eth0

Mar 3, 2011

I have a problem with the network. Worth two network cards and Ian wan. Do not take the ip. When the system boots not included until you do the command ifconfig eth0 up. The network card is connected to a router, he does not see it. Router working, tested. Network card is working well, tested on Windows. RX RT packages go, withheld support for ipv6 and packages no longer go.

View 14 Replies View Related

Ubuntu :: D - What Does It Mean When Get A Eth0:avahi - On Ifconfig

Jan 2, 2010

What does it mean when i get a eth0:avahi ? on ifconfig

View 2 Replies View Related

Ubuntu Networking :: Ifconfig Does Not List 2nd Nic?

Jan 7, 2010

i am using ubuntu server and when i run ifconfig i do not see my second nic

i'm running a supermicro 5015 dual core atom 330 server

ubuntu server 9.1

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved