Networking :: Setup Static IP Routes On 4 Debian Machines?
Oct 30, 2009
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
[code]....
View 1 Replies
ADVERTISEMENT
Jan 18, 2011
I have a temporary system up with wlan0 and eth2.
I want the eth0 address to be the gateway for accessing the internet on wlan0.
How do I setup static routes?
I'm not too keen with networking...
Code:
View 1 Replies
View Related
May 8, 2011
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"
View 2 Replies
View Related
Mar 23, 2011
how to setup persistent static routes in slackware? does slackware have some text file editing method like debian or redhat. ?
View 5 Replies
View Related
Sep 4, 2010
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:192.158.1.56 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 192.158.1.56 ( Taken from above info ) - metric around 2
Similary on my other NIC directly cabled to another switch ---and-then-to-another---> Router
[code]....
View 1 Replies
View Related
Jul 29, 2011
I'm trying to setup routes for a gateway that resides on a different subnet. Our ISP leased us a block of IPs and told us to route through the current gateway, which is on a different subnet than our current block of addresses. To test, I've enabled one of the new addresses on one of the existing machines, which works. That machine has an address on the same subnet as the gateway, however.
The gateway address is 24.111.1.177 One of the new addresses I'm trying to use is 96.2.192.130, netmask= 255.255.255.240, broadcast= 96.2.192.143 Obviously, I can't just specify that gateway in /etc/network/interfaces without some routing, which is where the trouble I'm having is. The machine I'm trying to set this up on is part of 2 networks - one internal, on two different NICs.
[Code]...
View 8 Replies
View Related
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"
View 5 Replies
View Related
Sep 13, 2010
ok I am using Debian 4 bigmem and I set up static ip for my box. This is for a class and we will be moving the hard drives around the lab to different computers. My question is what do I configure to get Debian to be ok with my using different nics at different times.
My first time I used it, I had eth0, but now I'm on a different computer (same type of hardware on all systems) but my nic is now eth1... And I had to set up static again for that nic. How can I have it just maintain a static ip for whatever nic/mac address on the computer that my hard drive happens to be put on?
View 1 Replies
View Related
Sep 13, 2010
I am using Debian 4 bigmem and I set up static ip for my box. This is for a class and we will be moving the hard drives around the lab to different computers. My question is what do I configure to get Debian to be ok with my using different nics at different times. My first time I used it, I had eth0, but now I'm on a different computer (same type of hardware on all systems) but my nic is now eth1... And I had to set up static again for that nic. How can I have it just maintain a static ip for whatever nic/mac address on the computer that my hard drive happens to be put on?
View 5 Replies
View Related
May 31, 2011
I want to setup some virtual machines that will use the same architecture and debian-version as my host-machine. I have started to setup VMs with a netinstall-image and now want to add more software using apt-get. As most of the software I will use is already installed on my host-machine I wonder if there is any way to configure apt in such a way that it will not download packages from the internet, but will use the packages from my host-machine to save network-traffic. Is there a good may to populate VMs using the debs from the host-machine.
View 1 Replies
View Related
Nov 18, 2010
I've been learning linux for a while now with half an eye on making a career out of it in future. One sizeable gap in my knowledge at the moment is networking. Is it feasible/desirable to set up a network of virtual machines to use as an environment to learn networking? My budget is non-existent so I was hoping to be able to get a basic understanding of the principles from installing a few desktops, a virtual gateway etc on VMware workstation on my laptop, and doing a lot of reading online.
Is this feasible, or will I just end up learning about virtual networks instead of real ones? Also how much power would be required, because my 3GB RAM lappy has just gone bang and all I have now is a (new) 1GB RAM lappy.
View 10 Replies
View Related
Jan 22, 2011
I setup a server last night and was able to remotely connect to it and access the internet with it. However, now that I have setup /etc/network/interfaces so that the server will have a static IP address, I cannot access the server remotely. Also, from the server itself, I cannot access the internet. Ping provides "unkown host" for any website I try. How do I fix this?! I don't know why this is happening.
Here is my interfaces file:
Code: ...
#The primary network interface
allow-hotplug eth0
# also tried with and without auto eth0
# auto eth0
iface eth0 inet static
address 192.168.133
netmask 225.225.225.0
gateway 192.168.1.1 This is the only NIC on the server.
Here is ifconfig:
Code: eth0
Link encap:Ethernet HWaddr xx:xx:xx:xx:xx:xx
inet addr: 192.168.1.133 Bcast:192.168.1.225 Mask:225.225.225.0
UP BROACAST 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 txpueuelen:1000
RX bytes:0 (0.0 B) TX bytes: 0 (0.0 B)
Interupt: 29
View 2 Replies
View Related
Jan 27, 2011
i was trying to setup a static ip in order to forward ports but with no luck. I need to setup these:
- IP address: 192.168.1.2
- Subnet mask: 255.255.255.0
- Default gateway: 192.168.1.1
- Preferred DNS Server: 192.168.1.1
View 5 Replies
View Related
Aug 16, 2010
I have a fresh install of Centos 5.x and I'm having issues on setting up the network...i know i have to edit/etc/sysconfig/network-script/ifcfg-eth0 and create an ifcfg-eth0:0 right?im just having issues getting everything setup correctly.my network setup:Router IP: 192.168.2.1IPs on network: 192.168.2.xNetmask: 255.255.255.0
View 3 Replies
View Related
Dec 1, 2010
I am trying to set up SSH so that I can edit files on a home server (linux). I know this question has been asked many times before, but none of the answers seem to apply to me.
Here's my setup. I have the modem connected to a switch (wired) that connects 2 PCs to the internet (one desktop, one server, both wired).
All of the threads I see that discuss static IPs seem to require that I set up a router. Is this necessary? Can I still transfer files through a switch?
View 9 Replies
View Related
Oct 7, 2010
I'm trying to use the nm-applet tool get a static ip on my wlan. I've created a configuration and set up the IPV4 settings ok but I can't figure out how to stop nm-applet from creating and using the auto wlan configuration. I've tried deleting the auto config but it seems to recreate it when I try to use wireless again. How to make the manual config the default or permanently disable the auto (dhcp) config?
View 2 Replies
View Related
May 26, 2010
I am having several boxex with centos on it. No pb. I have recently setup a new box with centos 5.4 and I am not able to get the network working on it when configuring a static ip.I've configured eth0 and dns using "setup": unsuccessfulI've used the network config GUI: unsuccessfulAnd it is working very well when I let the dhcp getting the setting.I need a static IP.Here is the getinfo output when static ip setup, and below it, the getinfo for dhcp setting
== BEGIN uname -rmi ==
2.6.18-194.3.1.el5 i686 i386
== END uname -rmi ==
[code]....
View 3 Replies
View Related
Dec 10, 2010
I'm not able to set up eth0 with a static ip adress.service network restart and it was okkay but when I try to turn off and turn on, the ip adress is set up with dhcp.
View 7 Replies
View Related
Jun 24, 2011
Here is the setup I have. Two debain (squeeze machines) A1(eth0,192.168.33.1, netmask 255.255.255.0) and B1(eth0,192.168.43.1, netmask 255.255.255.0). They both have 3 nics'. So I am trying to connect to each other with a crossover cable and I have added the routes manually. eg: on machine A1 route added was
route add -net 192.168.43.0 netmask 255.255.255.0 gw 192.168.33.2 eth1
and on machine B1
route add -net 192.168.33.0 netmask 255.255.255.0 gw 192.168.43.2 eth1
For project purposes they both have to be on different networks, evn thouhg they are in same room.
View 13 Replies
View Related
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
Aug 21, 2009
I've got a home server running Ubuntu Server 9.04 and several machines running Ubuntu Desktop (9.04 and 8.04) and Windows (XP, Vista and 7). Now what I want to do is to create a domain and directory server similar in function to Windows Server w/ AD and join my other machines to the domain, but am not sure where to start. I already have file shares with Samba but now I want to setup a domain.
View 3 Replies
View Related
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. Any idea's why it's doing that?
View 1 Replies
View Related
Oct 28, 2010
I have some CISCO,Linux related problem with 2 Class C subnets:
192.168.64.0 -> PC5
192.168.65.0 -> PC6
Here's a picture of my situation: [URL]
HQ has to have 2 STATIC routes in order those 2 "PCs" mentioned above to have end to end connectivity with NETWORK A and NETWORK B. Now I try with
route0 -> network: 0.0.0.0, mask: 0.0.0.0, nexthop: Serial 0/0/0
route1 -> network: 0.0.0.0, mask: 0.0.0.0, nexthop: Serial 0/0/1
And it seems to work but I don't think it's proper! I feel it's kinda wrong ... but all my other attempts to set another couple of static routes ends in "Request timed out" and thus connection lost.
View 1 Replies
View Related
Jan 6, 2010
I have several Windoz machines in a peer-to-peer network and now two SUSE machines, one 11.1 and another 11.2.I have a network printer accessible now to all the machines.My next step is to be able to share files between all the machines and several network drives. I know how to set this up between the Windoz machines, but the only way I can get the SUSE machines to see the network (and be seen) is to shut down their firewalls, and I don't think that's how you are supposed to do it?Can someone point me to what it is that I need to read, or is there a FAQ somewhere to help get me started?
I think that this has something to do with Samba and I installed Samba (client or server? I forget) on the 11.1 and 11.2 seems to have it already built-in, but I don't know how to set it up with the firewalls on the two Linux machines so that it is all seamless (as if anything can be seamless).
View 2 Replies
View Related
Jun 14, 2011
I'm trying to ssh to a client machine which as freeipa client setup Login works great but ssh via GSS.Is there a way to see what's being sent where? I already have the highest debug turned on the ssh side.
View 1 Replies
View Related
Jan 14, 2010
I am trying to setup one of my virtual machines in VMware with CentOS 5.2
At the welcome to Centos screen I get the following message ??
an error has occurred - no valid devices were found on which to create new file systems. Please check your hardware for the cause of this problem.
View 3 Replies
View Related
May 13, 2011
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:
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?
View 2 Replies
View Related
Jan 29, 2010
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.
View 1 Replies
View Related
Feb 5, 2010
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].....
View 2 Replies
View Related
Apr 7, 2010
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?
View 2 Replies
View Related