Networking :: Changes To 70-persistent-net.rules Not Reflected In Ifconfig Until Reboot?

Jun 18, 2010

I am working on a Fedora 13 iso that will be used on some of the PC's at my work, the computers will have a varying amount of Ethernet ports, at least two onboard and up to 6 external. In order to ensure that the same physical port on the back of the computer is always used for the internet connection I have written a script to rearrange the contents of /etc/udev/rules.d/70-persistent-net.rules. The script ensures that the two Ethernet ports on the motherboard are listed as eth0 and eth1, without it they could end up as any port in the eth0-7 range.

The script works well however when its run I need to reboot the PC for the ifconfig to load the correct port as eth0/eth1. I have tried placing calls to my function through the rc.sysinit/rc.5d/rc.local and so on however nothing seems to work.Is there a way to make ifconfig check the mac/eth configuration files for changes (There appears to no longer be an ifprobe command which sounds like what I need). Alternatively is there somewhere I can place the script after udev has created the persistent-net.rules but before anything else loads the information. I have tried chkconfig --level 2345 network off and loading the service later but it still uses the wrong information, only a reboot seems to get it to work

View 3 Replies


ADVERTISEMENT

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

Slackware :: 64 13.37: 70-persistent-cd.rules Not Automatically Generated?

Jun 4, 2011

And it was under Slackware64 13.0 and 13.1.Due to other issues with the 13.1 to 13.37 upgrade, I ended up performing a clean install so I don't think that this is due to leftover cruft.

View 4 Replies View Related

Debian :: Reset/remove Udev Persistent-net-rules?

Apr 30, 2011

I should create a sqeeze image and install it on other computers.Udev should detect network card (NIC) module and load it automatically at startup.How I understand /lib/udev/rules.d/75-persistent-net-generator.rules runs when udev starts, then writes to /etc/udev/rules.d/70-persistent-net.rules.The problem is, udev searches for this NIC on other hardware and the network cannot start.I can solve this problem easily using a startup script to delete /etc/udev/rules.d/70-persistent-net.rules file.

View 2 Replies View Related

Debian Installation :: Remove 70-persistent-net.rules During Live Startup?

Mar 2, 2011

I've created live squeeze usb-hdd and if I boot first time the udev system writes the MAC address of the network interfaces into /etc/udev/rules.d/70-persistent-net.rules.Because I use full persistence, the file is there on the next boot and I don't get network running automatically on other computers. My problem is, howto remove 70-persistent-net.rules every time during the startup?

View 5 Replies View Related

Ubuntu Networking :: Host File Changes Not Reflected In Web Browser

Jan 8, 2010

I've found that changes configured in my hosts file are not being reflected in my web browsers, but it is in the shell. For example... If I put the following in my /etc/hosts file

Code: 123.456.789.000 server server.dom.com I get a successful response from running ping in the shell

[Code]...

I'm using Ubuntu 9.10. I have to make regular changes to my hosts file to test services, so this is quite a pain.

View 1 Replies View Related

Server :: Iptable Rules Some To Save And Some Not To Upon Reboot?

Apr 17, 2010

I am having a Xen server xend daemon is taking care of giving interface names like vif1.0 or vif0.2 to the connected guest operating systems on it.I can not save the current IPTABLE rules since upon reboot the xend daemon gives different names to virtual ethernet interfaces i.e. vif1.0 or vif3.0 or vif9.0 like that.I have some rules that I want to be active upon subsequent reboots and not all.Say for example an SSH to external server at port 8000 should forward the request to a machine on LAN.Which I have done by port forwarding from IPTABLES.So I need to save some rules.I was thinking to make a script which on reboot activates those rules.

I am not clear on where to do that.I came across internet and found /etc/network/if-up.d/I am not clear with this directory my question is if I make a scrip which has IPTABLE rules as I want and save it in above folder will it work. I am not clear with what is /etc/network/if-up.dfor.Suppose my logic is wrong then how should I go for it.Also I want to know does a protocol uses two port to make a connection.I have forgotten that thing,i.e if I run an SMTP or ssh then do they use port 22 and 23 both in case of ssh or 25 and 26 both for SMTP like that or just specifying the rules for one port will be enough.I tested these rules in a secure environment where i had disabled firewall and ssh forwarding on router worked well

View 4 Replies View Related

Security :: Audit.rules Does Not Retain Certain Settings After Reboot Or Service Restart?

Jan 11, 2011

I'm using RHEL 5 with the Enhanced Security. Using the suggest NISPOM Red Hat documented settings (located on the system; copy - paste) I have managed to audit failed file open accesses however, this setting only retained if I enter it at the command line (/sbin/auditctl -a ). If I reboot the system or restart the service all my -a (not -w) located in the /etc/audit/audit.rules are not retained.

View 6 Replies View Related

Ubuntu :: Can't Create File /etc/udev/rules.d/70-android.rules?

Jun 19, 2011

I need to create filename 70-android.rules in the directory /etc/udev/rules.d/I have Adm privileges in my user account properties, but when I use sudo to create this file the Ubuntu OS does not allow me the privilege... I am running Ubuntu 10.04 LTS and here's the Terminal output below:daddy@gatomon-laptop:/etc/udev/rules.d$ sudo cat > 70-android.rulesbash: 70-android.rules: Permission denieddaddy@gatomon-laptop:/etc/udev$ ls -ltotal 8drwxr-xr-x 2 root root 4096 2011-03-16 18:03 rules.d-rw-r--r-- 1 root root 218 2010-04-19 04:30 udev.conf

View 2 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

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

Networking :: Ifconfig Shows Two Ip Addresses?

Feb 5, 2011

I'm on Fedora core 14 linux. and I'm online with the HSPDA modem. My modem is /dev/ttyUSB0 and when it's dialed it creates the interface /dev/ppp0 , My question is when I hit ifcofig it shows two IP addresses in the ppp0 interface.

Code:

[nature@localhost ~]$ ifconfig
eth0 Link encap:Ethernet HWaddr 20:6A:8A:12:CF:53
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0

[code]....

when I get the routing table, the gateway is setten to the 10.64.64.64 and when I look my Ip address global I found it's 175.157.64.119.

View 1 Replies View Related

Ubuntu Networking :: Manual Update Of Ifconfig?

Mar 29, 2010

To get internet access on my second computer I have to follow the manual routine detailed below:

sudo ifconfig eth0 down
sudo ifconfig eth0 hw ether ..........
sudo ifconfig eth0 up
sudo ifconfig eth0 ....... netmask ........ broadcast ........
sudo route add default gw .........

where the various ........ represent the relevant addresses. This is necessary because my ISP only recognizes one computer - my first one. The above works fine, I simply copy and paste the above from a text document, but I would like to know which files I can alter/create so that all the above is achieved automatically when I boot my second computer.

View 5 Replies View Related

Ubuntu Networking :: How To Assign Labels With Ip / Ifconfig

Oct 19, 2010

I am trying to manually set up a number of static IPv6 addresses to one of the physical network interfaces on my 8.04server box.

I tried to use the "ip" utility like that:/ip addr add [myIPv6addr] dev eth0 label eth0:0

which was accepted by ip (no errors) and the IP address was correctly assigned to eth0. But using "ip addr show" I do not see any reference to the label I defined and "ip addr show dev eth0 label eth0:0" does not come back with anything (empty output).

This seems to contradict the information I found on the ip manpage and I wonder if this is a bug or a misconfiguration on my side. Did anyone successfully used the label functionality with ip?

View 1 Replies View Related

Ubuntu Networking :: Automate Ifconfig Command?

Nov 8, 2010

I manage to get Ethernet over Firewire working between my Windows XP desktop and my Ubuntu 10.10 laptop.However, I am getting tired of having to manually issue the ifconfig command every time.How can I automate it so that the command is done at bootup?

View 1 Replies View Related

Ubuntu Networking :: Ifconfig Eth0 Not Found

Aug 6, 2011

I am working with ubuntu and my eth0 connection was up and working fine untill some days back when all of a sudden it seemed to disapper. I was able to access the net through it before. But now it has vanished and i donno when. i tried ifconfig eth0 up but no use. The result of cat /etc/network/interfaces is as follows

auto lo
iface lo inet loopback

View 9 Replies View Related

Networking :: Changing MAC Using Ifconfig Causes Connectivity Lost

Jun 15, 2010

I am using Suse 10 sp2. By running ifconfig I am changing the mac address. Everything is happening successfully, but this is adapter losing the network connection. Even when I give a static IP. I am not able to ping any other IP.

View 1 Replies View Related

Networking :: Ifconfig Address With A Port Number?

Sep 24, 2010

I'm trying to grok a problem I'm having with an embedded machine. I'm pretty sure I can track down the larger problem, but I came across a usage of ifconfig that I don't understand, and I'm pretty sure this is the command that is failing.

The command is: ifconfig eth0 192.168.78.20:9134

I understand how ifconfig works. What I don't understand is the :9134. I can't see anything in the docs about what this means. I know in most contexts it's a port number, but what does it do when bringing up a network interface? Does it limit it to only using port 9134?

View 1 Replies View Related

Networking :: Scripts Does Not Match Ifconfig Or /proc/net

Dec 16, 2010

Bugzilla # 224662 & 9
Red Hat 5.2

a) /etc/sysconfig/network-scripts displays only eth0 and lo0. However, /proc/net/dev and ifconfig INCORRECTLY display :

[Code]....

b) the _tmp NIC is reported in the above Bugzilla report and I'm looking for a patch.

c) Why is the kernel continuing to make NICS for eth1, 2 and sit0?

View 2 Replies View Related

Networking :: Strange Device Appeared In Ifconfig?

Jul 26, 2011

I am noticing the following output when running ifconfig:

[root@proxy log]# ifconfig -a
dev32758 Link encap:Ethernet HWaddr 00:xx:xx:xx:xx:xx
BROADCAST MULTICAST MTU:1500 Metric:1

[code]....

View 1 Replies View Related

OpenSUSE Install :: Repository Changes Not Being Reflected On The .changes Files?

Jun 19, 2011

I have a question, why is the Index of /repositories/X11:/XOrg/openSUSE_11.4 repository changes not being reflected on the .changes files?

For example, xorg-x11-driver-video.changes was last updated 2 weeks ago, when clearly the package has changed?

View 5 Replies View Related

CentOS 5 :: Increased Disk Space Not Reflected

May 11, 2011

I am running Centos 5.5 in vmware and recently had to increase my disk space from 20GB to 40GB. I understand that in linux, the increased disk space is not automatically reflected but as I am new to this topic, I am not sure how I can go about doing this. how to see what's the available space and how I can partition(?) this.

For your reference:

[root@localhost ~]# fdisk -l
Disk /dev/sda: 42.9 GB, 42949672960 bytes
255 heads, 63 sectors/track, 5221 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

[Code].....

View 2 Replies View Related

Networking :: Routes Not Persistent ?

Sep 1, 2010

I have a ubuntu 10.04.1 install with openvpn, so I have some routes in my /etc/networking/interface file. But for what ever reason when it boots the routes don't come up and I have to restart the networking before they come up. Once I do that all is well.

View 4 Replies View Related

Ubuntu Networking :: Should Wireless Be Labeled As Eth1 In Ifconfig

Jan 31, 2010

It is. I think this might be the reason why my $wireless objects don't work in Conky?

View 4 Replies View Related

Ubuntu Networking :: Cannot Get ETH0 To Appear In Ifconfig Via CAT5 Cable

Nov 7, 2010

I'm trying to get my Ubunutu and OSX systems to connected via a cat5 cable to transfer some large files around very quickly. Now i know normally this would require a crossover cable as it's a direct connection but the macbook/OSX can handle changing the wires round to make it work like a crossover cable as I've done it before. However the macbook creates a self-assigned IP or as I've tried I've set it to :
IP:10.10.0.1
Subnet: 255.255.255.0

Then I've setup the Ubuntu system both through the System>Admin>Network panel as:
IP:10.10.0.2
Subnet: 255.255.255.0
and my /etc/network/interfaces file is the same;
#lines added to get static crossover cable working
auto lo
iface eth0 inet static
address 10.10.0.2
netmask 255.255.255.0

Yet when I run ifconfig in the terminal eth0 isn't present
Code:
htpc:~$ ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:912 errors:0 dropped:0 overruns:0 frame:0
TX packets:912 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:371613 (371.6 KB) TX bytes:371613 (371.6 KB)

ra0 Link encap:Ethernet HWaddr 70:f1:a1:e6:b1:97
inet addr:192.168.0.42 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::72f1:a1ff:fee6:b197/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:120744 errors:1 dropped:0 overruns:0 frame:0
TX packets:87499 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:171716865 (171.7 MB) TX bytes:7815802 (7.8 MB)
Interrupt:19

htpc:~$ ifconfig eth0
eth0 Link encap:Ethernet HWaddr 90:fb:a6:e4:c0:b0
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:23 Base address:0xe000

Also even when I try and ping 10.10.0.2 either from my OS X or the actually Ubunutu machine all I get is:
Code:
ping 10.10.0.1
PING 10.10.0.1 (10.10.0.1): 56 data bytes
Request timeout for icmp_seq 0
Request timeout for icmp_seq 1
Request timeout for icmp_seq 2
Request timeout for icmp_seq 3

Yet the Ubunutu machine is also connected to Wifi and when I ping it's own address I get the expected response. To me it just seems like eth0 isn't being recognised somwhere or it's not turned on yet I can't seem to find any toggles or settings for it anywhere. Further more if I check >System>Admin>Network Tools the IP for eth0 is 0.0.0.0. What could be going wrong and why no IP set correctly?

View 7 Replies View Related

Networking :: Unable To Locate Eth0 With Ifconfig In Fedora 12 ?

Apr 26, 2010

I've got a vmware install of Fedora 12 running as a server. This install has the /etc/sysconfig/network-scripts/ifcfg-eth0 file configured with the proper info and the service has been restarted. When I run ifconfig I only get the loopback interface, when I run ifconfig -a I can get the eth0, but without the pre-configured ip address. When I enter ifconfig eth0 up I can activate the interface, but without the afore mentioned ip address. I need to be able to yum ssh, install it, and run it with rsa keys. Can do none of this without an interface obviously.

View 3 Replies View Related

CentOS 5 Networking :: Can't See The Physical Network Interface With Ifconfig - A?

Jun 3, 2010

Centos el5xen x86_64 in a company network, novell-netware, Static IP I have several issues with the Xen network configuration. This configuration worked before, and was maded by a other personn with a higher level in centos and network . I'm trying to re-install xen in bridging mode.

1) The dom0 ping in the company network, but can't acess to the Internet.

I de-activated firewall, iptables and SE-Linux for the test.

the ifconfig-a command return
eth0
lo
sit0 (IPV6 encapsuled in IPV4)
vif0
vnet0
but no Peth0 Physical device

Is it normal and how can i repare this ?

View 7 Replies View Related

Programming :: Scalar Arguments - Changes Reflected In Calling Program

Dec 3, 2010

(For function arguments): Scalar arguments are passed by value, which means that a copy of the argument is made for processing in the function, and changes to the argument in the function won't be reflected back to the calling program. Objects though, are passed by reference: any changes to them in the function are reflected in the calling program. What sense does this make? Why have they done this?

View 3 Replies View Related

Fedora Networking :: Ifconfig And Iwconfig See Wlan0 But Network Manager Does Not

Aug 22, 2010

I just installed Fedora 13 from the Live CD. FIrst off I read the guide and the first step doesn't even work for me. System>Administration>Network does not exist. If I go to System then Preferences I see a Network Manager but it looks nothing like what these screen shots look like. [url]

No wireless card show up in the wireless tab of Network Manager. How can I fix this since my card is listed in ifconfig and iwconfig. Wifi card is a Zonet zew2500p

View 2 Replies View Related







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