Networking :: How To Make Persistent Iproutes Using Iproute2
Jun 11, 2010I would like to have the below lines loaded at bootup and anytime the network is restarted (if possible).
Code:
I am using SuSE 11.
I would like to have the below lines loaded at bootup and anytime the network is restarted (if possible).
Code:
I am using SuSE 11.
I have a crappy cat5 cable that only works at 10BaseT settings on any nic. I have a gigabit nic which I configure using;Quote:ethtool -s eth2 speed 10 autoneg offProblem is that this setting doesn't stick after a reboot. How do I make the change permanent?
View 4 Replies View Relatedubuntu is capping my wireless connection at 1Mbps, so everytime I boot up i have to type this:
"iwconfig wlan0 rts 2347 && sudo iwconfig wlan0 frag 2346 && sudo iwconfig wlan0 rate 9MB"
How can I make these settings persistent?
I have a linux machine with 3 NICs, one for the local net and the other 2 for 2 different ISP's which i want to load balance.
I configured Load Balance on my linux box using iproute2 and what i found in this site [URL].
Im able to reach the internet using that box, but when i configure a pc from the local net with the linux machine as the gateway im not able to reach the internet.
The problem seems to be NAT concerned, so i was wondering, how can i configure PAT using iproute2 to get this result: -I want load balance to take place, and that translation occurs after the linux router decides through which interface (of the 2 i have configured to my ISP's) the packet is going out. (i dont know if that is possible)
I'm trying to set up load balancing using iproute2 following this guide. I've got 4 dsl links as follows:
eth1 - 100.100.100.1
eth2 - 100.100.100.2
eth3 - 100.100.100.3
eth0 - 111.111.111.111 (main uncapped line)
eth0 is the default route, and eth3 is being used for something else. So what I want to do is load balance browsing between eth1 and eth2. I've added all of the routes in the LARTC guide, but the command to enable the load balancing:
Quote:
ip route add default scope global nexthop via $P1 dev $IF1 weight 1 nexthop via $P2 dev $IF2 weight 1 obviously involves creating a new default route. Since I'll be using Squid to push the traffic through the relevant line, how can I set up a load-balanced link for eth1 and eth2 without changing the existing default route on the server?
To be able to use my 3g connection from my laptop I am using Azilink.Azilink work by setting up a little Openvpn server on your smartphone then you connect to your smartphone from your laptop with OpenVPN.From there what i wanted was to use a second VPN connection to an external Linux host and redirecting all my traffic to that tunnel... (redirect-gateway + iptables)It is working but partially..Here is the way I connect through my phone (all steps are I think important for the routing issue...)
1) I plug the phone then a usb0 interface is created with the 192.168.239.5 ip adress (my phone is 192.168.239.4)Then adb connect 192.168.239.4
2) I have to enable a port forward on my phone adb forward tcp:41927 tcp:41927
3) I run the openvpn script (to connect to my phone on wich i have launched Azilink)
So Openvpn connect to 127.0.0.1:41927 (to my phone) From there I have a Initialization Sequence Completed
At this time I am connected through 3G via my smartphone to the Internet..And as you imagine i don't want to enter all the IP adresses of Internet minus RFC1918 manually via route command.I think the problem comes from the fact that when i do the route add default gw 10.8.0.5 it is overwritting all the routes required to establish the first and the second connection am i right? Could someone help me solve that issue ?
I have VNC set up on my server - connecting is fine - however there is no way to log out from the actual session over VNC (can only disconnect the VNC session itself). What I'd like to be able to do is logout and be presented with the login screen - is this possible ?
View 2 Replies View RelatedI followed the instructions at [URL] but whenever I boot with the "persistent" option, the Ubuntu splash screen will take forever to boot, and It's not reading the CD! How do I fix this? By the way, I'm booting 10.10.
View 1 Replies View RelatedI am running a live (4gb) USB of Fedora_14 with 768mb persistent storage. I am trying to add firmware for broadcom wireless link, as it is not natively supported. When I download tar, extract and copy missing firmware then reboot... all changes are reverted back. How do I make these changes persistent upon reboot.
View 8 Replies View RelatedI just did a fresh install of Fedora 11 and the only video resolutions available were 640x480 and 800x600.
The native resolution of the monitor is 1280x1024 and that's what I'd like to use.
I was able to get the display to the proper resolution with the following commands:
Code:
However, rebooting sets it back to 800x600. I have seen the edits to xorg.conf but that file wasn't created.
Is there a way to make the 1280x1028 resolution persistent without creating a xorg.conf file?
i has setup a persistent DNS cache to improve my web-browsing. it works wonders and with my ICC built firefox my web-browsing is laser-fast, pretty much like using internet explorer in windows! however, everytime i reboot, my modifications to /etc/resolv.conf have been replaced... 1st. the file must contain:
# Generated by NetworkManager (obviously modified by this)
nameserver 127.0.0.1 <----this is lost on reboot, and is needed to make it all work
nameserver 209.226.175.223
nameserver 198.235.216.134
i have tried to add this to - System/administration/network, but it doesn't seem to fix the problem. 2nd. my next problem is that when fedora 12 starts up,i need it to start "dnsmasq".i have tried to add it as a startup application, but it doesn't start automatically.so i end up having to start it manually everytime:
sudo /etc/init.d/dnsmasq start
it is annoying, but so far i just deal with it, because my browsing is that much faster! i am planning to post a tutorial for those interested in faster web-browsing in linux, but until i can make the changes perminent there isn't much point.
PS: i have tried to write a shell script to do this and every which way i try it fails
I installed Slitaz on my USB. However I can't figure out how to make it persistent automatically. There are different sources telling me different ways to make it persistent.
One told me to add "slitaz home=usb" to the syslinux.cfg file like this:
append initrd=/boot/rootfs.gz rw root=/dev/null vga=normal autologin slitaz home=usb
but it didn't work for me.
http://www.slitaz.org/en/doc/handbook/liveusb.html gave an example of how to do it manually but I didn't try it and I also want it to happen automatically.
custompc.co.uk/features/602451/make-any-pc-your-own-with-linux-on-a-usb-key.html is an older article that also explains how to make the USB persistent but I don't want to try it cause it looks outdated (from 2008)
does anyone know the best way to make the USB automatically persistent?
I've noticed that every time this desktop is turned on the date & time are as they were the last time I used it, and then have to put in the correct date & time again (this is why I chose the word 'persistent' within the tittle). When I try to change those have to write in the password for the date as well as for the time as if 'login-in' once were not enough! What I want to know is how to put in the date & time and receive the correct amounts the next time I turn the unit on again, as it should be? Do I've to open a terminal & do it with administrator's authority/credentials?
View 3 Replies View RelatedCurrently got a 32bit laptop and im running Ubuntu desktop 10.10 with the 32 bit version, If I upgrading my machine would i need to make a new persistent live usb for the 64 bit machine?
View 3 Replies View RelatedJust started using the above distro - anyone know how to make persistent saves to a USB device?
View 5 Replies View RelatedI have enjoyed setting up a live USB stick to boot Ubuntu from and it works very well but I can't make my settings persistent. The option to do that in Startup Disk Creator is greyed out, the Stored in Reserved Extra Space is just not available.
View 2 Replies View RelatedMy system boots in 1024x768 screen resolution. I'd like to change it to 1280x1024 for all users. I can change the setting to 1280x1024 and it's persistent between sessions, but is reset back to 1024x768 on reboot. In the old days, I used to edit xorg.conf to set the the mode I want, but now there's no xorg.conf. I created one using
xorg -configure
but this created an xorg.conf which has no modeline settings at all. The file just looks like a template. Here's what I got:
Quote:
Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
[Code].....
Everyone who deals with Linux knows that partitions on hard drives are designated as "sdx#", i.e., sda1 sdb2, etc. I know through experimentation that the number portion of the designation is assigned not according to order on the disk, but chronologically in the order they are created.
Further, if you have several partitions on the disk-say, sda1 through sda3-and you delete sda2, the designation of sda1 will remain the same, but sda3 will become the new sda2. The creation of any further partitions on the drive will start with designation sda3 and increment from that point.
At times this creates a conundrum, especially concerning bootable partitions. Some time back I rendered a partition containing OpenSUSE unbootable because of this, even though Ubuntu owned the GRUB bootloader in the MBR. Ubuntu's GRUB could find and point to the partition using the command "sudo update-grub", but when OpenSUSE took over the boot-up process, its GRUB was pointed to the wrong partition and would freeze up.
My question is this:
Under Windows, one is able to make a Drive letter persistent. Windows will keep the drive letter for that partition and assign around it. Is there a way to change a drive designation number, or at least make it persistent, under Linux? It would be a handy method to forestall these types of booting problems, among other things.
Presently, when a person has installed Linux side-by-side with Windows and want to delete the Windows partition and expand the Linux partition into the free space, I will tell them to format the partition, then shrink it to next to nothing instead of deleting it. This preserves the partition ID scheme while giving them the space to expand their Linux partition into...especially helpful with a seasoned Linux installation that would be a PITA to reinstall and set back up.
Oh, and I already know about UUID. This article explains it, but if you look down through the comments, you will see reasons that it is problematic for desktop application and usage. I want to make it as simple as possible for new Linux users (and myself! ).
The command and error message:
gtwy ~ # ip rule add from 64.251.23.186 table t1
RTNETLINK answers: Operation not supported
Older article of the same problem, but it did not help me: http://forums.gentoo.org/viewtopic-t-696982-start-0-postdays-0-postorder-asc-highlight-.html
I have looked on google at great lengths to try to find a solution. It seems that my kernel configuration is missing something? My system/kernel is: 2.6.36-gentoo-r5 #3 SMP Thu Jan 13 10:49:06 EST 2011 x86_64 Intel(R) Xeon(R) CPU X3220 @ 2.40GHz GenuineIntel GNU/Linux.I am posting this on SuperUser since this system is used as a workstation and this problem is unrelated to specific tasks that are handled exclusively by servers.iproute2 is installed:
gtwy etc # emerge --search iproute2
Searching...
[ Results for search key : iproute2 ]
[ Applications found : 1 ]
[code]...
I had a google of this but can't find anything useful. I use networkmanager to configure my wireless card. Currently this only works when I'm logged in to KDE. If I log out the system loses the network connection. Is there a way to make it persistent using NetworkManager?
View 9 Replies View RelatedI 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 RelatedI 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. Any idea's why it's doing that?
View 1 Replies View RelatedAt work I have been given the "opportunity" to provide admin support on a bunch of RHEL3, 4, and 5 servers. My latest problem is, as the subject hints at, adding persistent (or permanent) routes on a RHEL5 server. I've successfully done this with a couple of RHEL4 servers by adding the relevant information to the /etc/sysconfig/network-scripts/route-eth0 file like this:
GATEWAY0=xx.56.200.129
NETMASK0=255.255.255.128
ADDRESS0=xx.56.200.250
On the RHEL5 servers I do not see a route-ethX file. Do I just add the file and the route info? Or has this functionality been moved to another location?
I'm running Ubuntu 11.04 on my desktop and the 70-persistent-net.rules file seems to be ignored. The ethernet interfaces are randomly shuffled around on boot (i have 4 interfaces). The original one was configured to have a static IP address (eth0). Is there anything that prevents the /etc/udev/rules.d/70-persistent-net.rules from being applied/used?
View 1 Replies View RelatedI 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
As root, I can mount the /home directory from my desktop to my laptop which uses wireless. However, when I logout the mount disappears. That is, I mount the directory, check it is mounted, then I logout, log back in as root, the mount is now not there. How do I make the mount persistent, always there?
I want the mount to persist so that the two ordinary users on my small household network can access the same files whichever computer they use.
It appears that this may be because the wireless link disappears when I log out. Both machines are using Fedora 10. A persistent mount used to work using Febora 8, but maybe some settings I am not aware of have changed.
I have a dual NIC firewall and everything works fine but only if I run the static route for the default gateway manually:route add -net 0.0.0.0 netmask 0.0.0.0 gw x.x.x.x dev eth1.Where eth1 is my WAN interface and x.x.x.x is my WAN IP. I've spent about 20 hours trying to figure out just how to get this static route to come up automatically upon reboot. I've read all the manuals and all that jazz.I've added the "up route..." or the "post-up route..." commands to the /etc/network/interfaces file but that does not work (although my other static routes work just fine from here). I've copied the relevant text and pasted it onto the command line to confirm correctness - everything with the command is fine.
I've also creates a static-routes file (and chmod +x, confirmed the correct permissions, etc) in /etc/network/interfaces/if-up.d/ and attempted to set the routes here (yes - using the "/sbin/route add -net." terms that work FINE from the command line). But that does not work either.
I'm trying to use a persistent install of Lubuntu 10.10 on a USB flash drive. I thought it was working at first, but the wireless connection won't happen at all; period!
Whenever I click on the network Icon, all I get is a pop up message telling me I'm not connected to the wireless Then when I click on the wireless menu to select a network, the sign in window closes before I can even try to do anything with it, and then I get that "your not connected" pop up message again.
It's quite irritating. It basically won't let me sign on to a wireless Internet connection at all.Every time I do try to connect all I get is the "your not connected" message and nothing else. I'm using a 16 GB Kingston Data Traveler USB flash drive and am trying to run it on a Toshiba A100 Satellite laptop.
I've also been experimenting with a 16 GB Kingston Data Traveler 102 USB flash drive, with Linux Mint 9 LXDE installed on it and haven't had any problems with that one accessing wireless connections on the same computer.
Does anyone know what would cause this? It seems to boot well enough. But I just can't get Lubuntu 10.10 to access wireless networks to save my life. Could it be a hardware issue? I should note too that I used exactly the same USB flash drive on the same computer when giving Xubuntu 10.10 a "test drive" as a persistent install. But I didn't have any troubles like that with it.
I am a linux newbie and want to try to run Fedora 13 from a 4Gb USB flash drive for a while until I decide to do a permanent install.My problem is that although I selected to create persistent storage using the liveusb creator, nothing is being saved after rebooting.For reference, I downloaded the 64bit version using bittorrent, and I created the live usb on windows 7.Is there some setting I must set to enable persistent storage?
View 2 Replies View RelatedI am currently running Windows 7 and would like to "play around" with Linux and learn how to use it, but am not willing to entirely "jump ship: as of yet. Thus, I would like to be able to use my USB key (32 gig) that is persistent. I have had no success in being able to get this to work; I went to http://www.pendrivelinux.com/ and attempted several different times and the only one I could get to work was not persistent.
View 9 Replies View Related