Slackware :: Keep Static Routes After Rc.inet1 Restart?
Jun 29, 2010
Is there a standard config file for saving static routes or "ip route" commands? i lose my static routes after every "/etc/rc.d/rc.inet1 restart".rc.local wouldn't be a good idea, because it's not run automatically after "/etc/rc.d/rc.inet1 restart"
How do I add a route that doesn't go away after a reboot? I tried adding to /etc/sysconfig/network-scripts/route-wlan0 and /etc/sysconfig/static-routes but neither of them did anything when I restarted network and NetworkManager. route command does not show the new route that I added. I tried this too - routes.html and there were no errors but the new route doesn't show up with the route command.I added "192.168.13.88/255.255.255.255 via 192.168.13.101 dev wlan0"
I wanted to save a bit of ram and so removed wicd from startup. I deleted rc.wireless.conf and edited rc.inet1.conf as per the instructions. A connection is made at startup but it seem to drop quite often ( not too hard to restart, but a bit of a pain ). I am running a k-2.6.37 with a zydas usb zd1121 chip
# /etc/rc.d/rc.inet1.conf # # This file contains the configuration settings for network interfaces. # If USE_DHCP[interface] is set to "yes", this overrides any other settings.
I have 4 debian boxes networked together through a basic 5 port switch. I am trying to simulate 2 Local Area Networks joined together by a WAN. Right now I can communicate with A <--> B, B<----> C, C<----->D. However, I cannot communicate with Host A to Host D which is the whole point of this experiment. It has to be my static routing is not right. This is a confusing area to me. Right now my routes are
GNU/Linux gods, guides and superbrains.Don't be moddest. I'ts YOU i'm taking about!I'll be your humble problem-describer-pixie / solution-testing-smerf :
Andreas Vinther, 1977, from Denmark
I'm trying to establish a connection between two seperate ADSL LANs (coming into the house, but from separate ISPs) to a situation where all hosts on either LAN will be able to reach any host on eiher LAN WITHOUT having to use an excess of plastic routers around the house, and please no Wireless bridges. WiFi will only be available as Access Points.
I've heard that Debian does this kind of static routintg / RIP stuff quite well. And I just happen to have one lined up in the right place, that haven't got at snowballs chance in hell of running WINXP or above. But it kills at textbased datamanipulation/forwarding/rerouting/dropping/scanning ... so I'vew made up my mind. That is what I want to do... Now how do io get around doing stuff like that.
The Debian box is connected to both networks: Hostname: AsusAnd (192.168.1.0/24 - TDC network) and to (192.168.15.0/24 - Profiber network)
Needless to say, but both netmasks are 255.25.255.0 hence the /24 The respective router's LAN addresses are 192.168.1.1 and 192.168.15.1 My Debian are locked to the following IP's (reserved DHCP):
eth0:126.96.36.199 via DHCP from 192.168.1.1 eth1:192.168.15.177 via DHCP from 192.168.15.1
So far so good - Now here we go ! This is not a scenario where i'd like to always want all network-packages to travel the shortest path, nor NESSESARILY use the other ISPs gateway if the first is down or slow, although that'll be super nice.
I suspect that'll involve router-protocols like RIP. I'll be super pleased to get some guidelines there as well, as i suspect it'll be quite easy to implement once everything else is in place. Although RIP isn't our main goal, it probably comes as a close second. I think we all would like as stable and fast a connection as possible.
I was actually so naive that i thought if i added two static routes to the two routers x.x.1.1 and x.x.15.1, that my problems would automatically be solved by my Debian box, and that it would automatically act as a gateway when the routers send their packages for the other net. As long as i was connected to both LANs at the same time.
Note: I haven't changed or tweaked the Debian kernel to do routing. this is a simple stable install from the net-inst.iso of Debian 5. I'd like to keep it that way unless there's no way around it.
my routers have static routes to each other (WITH PROPER CABLING), configured as follows:
(On router with LAN 192.168.1.1) [static route] to 192.168.15.0 with nmask 255.255.255.0 going throuhg gateway 188.8.131.52 ( Taken from above info ) - metric around 2 Similary on my other NIC directly cabled to another switch ---and-then-to-another---> Router
I set up my interfaces file just fine on one of my computers and everything works. On my desktop its a no go. This is what I've done. I set my interfaces file to look like this
# The loopback network interface auto lo iface lo inet loopback
Then I uninstalled network manager (sudo apt-get remove network-manager-gnome). Now I can restart my computer, but I do NOT get a static IP of 112, instead I get the last working dhcp given address (.104). It connects and I get internet using .104.
BUT, if I run
sudo /etc/init.d/networking restart
then it DOES work. It changes to my address .112 and the internet works. But when I get that I get an error SIOCDELRT: No such process found (or something similar to that). But after it sits, it still finished with [OK] and my internet works. Clearly something is amiss though. Because it doesn't go to the static IP imediately. I even tried setting up a rcS.d link to a file with that networking restart command, but still no go. It starts with the .101 IP.
I noticed that the official Slackware packages don't contain static libraries. The SlackBuild scripts from slackbuilds.org or from Slackware DVD usually contain --disable-static option to prevent building the .a file. And if configure script doesn't allow such option, the .a file is deleted before the package is created.I am wondering what is the reason for that? Is it just the matter of conserving disk space? Are there also other reasons?
I have a home lan which has always used static IP. I now have a new modem/router which has no way to assign IP's by mac address.Is there a way to set a client up to always have the same IP when the router is assigning the IP's?
My ISP provides my internet via DHCP. I have a home wireless router to provide internet access, wired for my desktop machine and wireless for my laptop. My question is: Is it possible to configure the router (the Access Point) to provide internet to the desktop and the laptop via static IP? Currently I have managed to configure the internet to them via DHCP and it works. I am just curious to know whether it is possible to provide the internet for them by static IPs, given that the internet that actually goes into the Access Point (the wireless home router), is DHCP.I fiddled with this a lot yesterday, but I only managed to get a working configuraton by DHCP for both the desktop and the laptop. If I supply them with static IPs, I can only ping the Access Point, but not beyond it. So does it at all make any sense to try to configure them by static IPs, i.e. is that virtually possible?
I have a weird bug : segmentation fault appears when executing the 'retq' instruction of my sigalrm callback in static link...It seems it happens only on slackware...Here is a simple test case, compiled in shared -> no problem, static -> crash...Paste the following script in a file named "test-sigalrm-pack2.sh", and execute it: it will generate the C++ source and a simple build/test script.... Just launch the build script (tst-sigalrm-build).
I am trying to get a Slackware server up and running. I got a static IP working kinda. The computer gets a response when I ping the router but not the internet. Basically it can communicate with other computers on the network but nothing outside of the network. Its not a problem with the router because I have a couple other computer with static IPs. Also the network card works fine as it can get on the internet fine normally.
I don't use wireless tools myself currently, since I'm wired to the internet; but, I found that a package I wanted to build, required at the least, a shared version of libiw, if not both the shared AND static version. Symptoms of when you are in this boat, are error messages during compiling, similar to:
Code: /usr/lib64/libiw.a(iwlib.so): In function `iw_mwatt2dbm': iwlib.c:(.text+0x1a77): undefined reference to `log10' iwlib.c:(.text+0x1a84): undefined reference to `ceil' /usr/lib64/libiw.a(iwlib.so): In function `iw_freq2float': iwlib.c:(.text+0x1b11): undefined reference to `pow'
I installed Slackware 13 (full install) a few days ago and every thing is working well except KDE freezes (I'd say randomly but lately it seems as if it happens after I use a KDE program or component.) and nothing works except the mouse cursor, I have to use the power on/off to reset the computer. After a reboot and fsck checks the partition that was unmounted improperly I log in delete a few bad files (.serverauth.XXXX, socket-speeedy and tmp-speedy) I'm usually able to restart KDE using startx. Googling around I think it may be my on board Intel video, dmesg id's it as the Intel 830M Chipset. BTW, this box ran Mandrake 10.1 for the last 6-7 years without problem, for what's worth.
I just installed slackware on my pc. The installation went fine (I think). When I am trying to turn the computer on, I am asked to type the "host login". As I can remember I didn't write any username, or password. But as it seems, I have to type this in to login. I tried with "root", then this comes up "root@host:^#" if this is right, what should I type here to get further...
I upgraded to 13.1 and found the restart, shutdown buttons do not work. I have to resort to the terminal commands init 6, or poweroff. I then tried to install flash plugin. I modified the slackbuild script as per normal. Then issued the following command which seemed to succeed. But when I try to play utube movie it says flash is not installed. Do I need to rebuild the system?
I am trying to make a library that uses my other static libraries. This new library is a separate KDevelop project, and my older static libraries can be found in sdk/HoloSDK/lib/ in the home dir. So I've created a Librool library (libHoloSDK.la), and in the Target Options window, on the Libraries tab, I've added to LIBADD:
Now if I copy the resulting files to /usr/local/lib64 and try to create an app based on this library, and it picks up the static version, it cannot find _any_ of the symbols that were in the older static libs. When I try and look at the lib with nm, I can see the symbols that are coming from the object files, but cannot see any of the symbols coming from the static libs. And I also have some error messages:
nm: libHGeometry.a: File format not recognized nm: libHNetwork.a: File format not recognized nm: libHCore.a: File format not recognized nm: libHMath.a: File format not recognized
from which my guess is that nm "blindly" packs my static libs into the new static lib, however the assumption is that a static lib should consist of object files, right? So how could I set my project up so that the static lib will finally contain all the symbols? (I could write a script that unpacks the objects, then repacks them, but I assume there is a simpler way I don't know about)
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.
what change in route table in Fedora 12 and 13, i have a route 2 links and its only works for fedora 11, in fedora 12 and 13 somethins change and my routes not works. Some know what i have to do to its works fine ?
I got this message on Friday from just one domain. uote:mailsrv.forthnet.gr #<mailsrv.forthnet.gr #5.5.0 smtp; 554 5.5.0 Your message was considered to be spam by the FORTHnet Antispamming Policy and was not delivered to the recipient. The following spam tests returned positive for this message:FORGED_RCVD_HELO,RCVD_IN_BRBL. For further information visitWe are not a spamming community but it seems we have a statice IP address that has a Reverse lookup to "myipaddress.static.lyse.net" and not my email domain. Would setting a cname mail.mydomain.no -> myipaddress.static.lyse.net cure this problem or are there more tricks to be performedOnce I have cured the FORGED_RCVD_HELO I can move to getting the IP removed from BARACUDA.
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. Any idea's why it's doing that?
Our system has a large number of init scripts (over 180). When we reboot it, we need it to be reachable over the network before all the init scripts load, so putting the routes in rc.local does not work. What's the best place to put the routes so that they get added as soon as possibe?
I am realtively new to BGP. I use BGP in my network to advertise my /20 subnet. What i would like to know is what is the point of accepting routes from your neighbouring AS(ISP)?My ISP has given me a default gateway, and no matter what I want to reach on the internet I have to go through that default gateway, so why populate the routing table with soo many routes?also, as i understand it, there are 3 kinds of routes that you can accept, those are full routes, directly connected routes and default routes. What is the diffrence between them and again how do they affect routing since my network only has the one default gateway?
I have 2 NICs in one box, both connected to two different routers.Is there a way to make NIC1 handle lets say 204.x.x.x and NIC2 handle the restncoming requests though.Basically, I have apache running, and I things to go through a specific NIC based on source.
i installed the free PacketIX vpn client on my ubuntu 9.04. it created a virtual network adapter, i was able to configure and connect to the VPN service but when i add a default route to the routing table so that all internet traffic goes through the VPN, my internet connection stops working until i remove the line i added. here's my routing table before :
Code: Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.222.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 eth0 10.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 vpn_vpn 0.0.0.0 192.168.222.2 0.0.0.0 UG 0 0 0 eth0 and after i add the route: [Code].....
At 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:
I currently managed it to get a pptp-connect to my home network. now I have another little problem. NetworkManager always routes the whole network traffic over my home network if i am connected to the home network.If i set the "Use this connection only for resources on its network" I have do manually say:
Code: route add -net 192.168.1.0 netmask 255.255.255.0 dev ppp0 After that only the correct traffic runs over the vpn. Now my question is it possible to setup the route via the networkmanager gui?
On a server with 4 network interfaces, sometimes not all 4 are plugged in. All 4 interfaces have the same IP address. Sometimes the machine cannot access the local LAN, but can access the internet via a router on the local LAN, after a reboot. What I find is that the routing table looks like this:
Code: Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 172.30.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0 172.30.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1 172.30.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth2 172.30.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth3 0.0.0.0 172.30.0.2 0.0.0.0 UG 1 0 0 eth0 0.0.0.0 172.30.0.2 0.0.0.0 UG 2 0 0 eth1 0.0.0.0 172.30.0.2 0.0.0.0 UG 3 0 0 eth2 0.0.0.0 172.30.0.2 0.0.0.0 UG 4 0 0 eth3
On the console I cannot reach any local host, but I can reach internet hosts. Pinging the gateway router 172.30.0.2 gets no answer. When I manually change it to this: Code: Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 172.30.0.0 0.0.0.0 255.255.0.0 U 1 0 0 eth0 172.30.0.0 0.0.0.0 255.255.0.0 U 2 0 0 eth1 172.30.0.0 0.0.0.0 255.255.0.0 U 3 0 0 eth2 172.30.0.0 0.0.0.0 255.255.0.0 U 4 0 0 eth3 0.0.0.0 172.30.0.2 0.0.0.0 UG 1 0 0 eth0 0.0.0.0 172.30.0.2 0.0.0.0 UG 2 0 0 eth1 0.0.0.0 172.30.0.2 0.0.0.0 UG 3 0 0 eth2 0.0.0.0 172.30.0.2 0.0.0.0 UG 4 0 0 eth3
Then all is well (can ping local hosts including the gateway router). I do have metric specified in the /etc/network/interfaces file like this: Code: auto lo iface lo inet loopback auto eth0 iface eth0 inet static address 172.30.16.8 netmask 255.255.0.0 network 172.30.0.0 broadcast 172.30.255.255 metric 1
First I will give some background. We have a currently working network that the Previous network Admin assigned an internal IP scheme of 184.108.40.206/24. I have no idea why he would have done such a thing, but it is my job to fix it (and keep our systems up and running). We have a Fedora 10 box on the 200 network that is acting as a router and a firewall (shorewall to be exact).
I added another NIC card (thank you again to all the great people on this forum for helping me get that working) and it is eth2. Assigned it a 10.100.1.A/24 (This is just a variable for the real IP). The other end of the cable that I plugged into that NIC connects to a Cisco Layer 3 switch. I assigned the port that connects to the other end of the cable the IP address of 10.100.1.B/24
Ok, I added the static route of ˜ip route add 10.100.1.0/24 via 10.100.1.A dev eth2' I added loc2 (which is my eth2 adapter) to the /etc/shorewall/zones file. I set eth2 on loc2 in the /etc/shorewall/interfaces file. loc2 eth2 detect I set the lines in the /etc/shorewall/policies file loc loc2 ACCEPT info loc2 loc ACCEPT info I can ping the cisco switch from the linux server itself. From a PC on the original network I can ping the new NIC card in the linux server, but cannot ping the cisco switch, so I figure it has to be either the route or shorewall.
New ubuntu desktop user here. I've been working with Ubuntu servers for over 3 yrs, using Windows as clients. I have OpenVPN running on an ubuntu 10.04 server, and it has worked well with Windows OpenVPN clients connecting. I took those same settings and applied them to this new install of Ubuntu 10.04 Desktop, and now openvpn seems to be failing when we get to the routes (I wrestled with the network-manager "secrets" issue for hours, but that works now).
I performed the following: sudo openvpn --config fogbank-ny1.ovpn --all is well, we're connecting/yay then *screech* FAIL--
Code: Sun Jul 18 07:17:14 2010 PUSH: Received control message: 'PUSH_REPLY,route 10.8.0.0 255.255.255.0,redirect-gateway def1,dhcp-option DNS 10.8.0.1,route 10.8.0.0 255.255.255.0,topology net30,ping 30,ping-restart 600,ifconfig 10.8.0.10 10.8.0.9' Sun Jul 18 07:17:14 2010 OPTIONS IMPORT: timers and/or timeouts modified Sun Jul 18 07:17:14 2010 OPTIONS IMPORT: --ifconfig/up options modified Sun Jul 18 07:17:14 2010 OPTIONS IMPORT: route options modified Sun Jul 18 07:17:14 2010 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified Sun Jul 18 07:17:14 2010 ROUTE default_gateway=192.168.10.1 Sun Jul 18 07:17:14 2010 TUN/TAP device tun0 opened Sun Jul 18 07:17:14 2010 TUN/TAP TX queue length set to 100 Sun Jul 18 07:17:14 2010 /sbin/ifconfig tun0 10.8.0.10 pointopoint 10.8.0.9 mtu 1500 Sun Jul 18 07:17:14 2010 /sbin/route add -net <mypublicip> netmask 255.255.255.255 gw 192.168.10.1 Sun Jul 18 07:17:14 2010 /sbin/route add -net 0.0.0.0 netmask 220.127.116.11 gw 10.8.0.9 Sun Jul 18 07:17:14 2010 /sbin/route add -net 18.104.22.168 netmask 22.214.171.124 gw 10.8.0.9 Sun Jul 18 07:17:14 2010 /sbin/route add -net 10.8.0.0 netmask 255.255.255.0 gw 10.8.0.9 Sun Jul 18 07:17:14 2010 /sbin/route add -net 10.8.0.0 netmask 255.255.255.0 gw 10.8.0.9 SIOCADDRT: File exists Sun Jul 18 07:17:14 2010 ERROR: Linux route add command failed: external program exited with error status: 7 Sun Jul 18 07:17:14 2010 Initialization Sequence Completed
I am using the suggested openvpn routes. If I connect from Windows (actually the .ovpn file is taken directly from the working windows machine).. all is well, routes work fine all traffic is routed thru the VPN -- same way it's worked for over a yar. I assume that this is what is causing networkmanager to fail as well. those logs indicate that it has connected to the vpn, but is probably stopping when it gets to routes.
I am doing a university course and am struggling to find a method of sending 1 message down route A and then the next message to the same destination via route B, alternating between the two with each new message sent.I am going to use a Linux computer with two Ethernet cards connected to two different networks via a routers and then to the destination host via a switch.
I need to setup my ubuntu pc single nic card ip as 192.168.1.6 for internet and 10.172.170.95 and 126.96.36.199 for my lan and for another network through my 4port DSL modem.So i defined like this.Except addition of last two routes(10.0.0.0/8 & 188.8.131.52/24) everything worked as defined, what is the mistake i did?
Is it possible to add the routes to my routing table for dynamic pppoe connections? I have this setup on windows 7 with power-shell scripting and some 3rd party commercial pppoe client called Cfos, but since I'm now trying to move away from windows to Ubuntu and cant use the same programs anymore and its getting abit tricky now. I'm not trying to do any fancy load balancing here just some basic stuff which should be possible. Here is same basic info.
My ISP resets my pppoe connection every 24 hours. However the advantage of this is that I can call out 2 or more simultaneous PPPOE connections through the same modem. This is my routing table I wrote which has 5 PPPOE connections [URl]..Id like this to be automated when the PPPoes reconnect and the computer restarts.