Networking :: Configuring Multiple Separate LANs In Same Physical Network
Jun 27, 2010
For some simulation, I am trying to configure a setup of 3 ubuntu desktops (one of them with multiple network cards) to behave in the following way:
Each one of them should be a separate network not seeing the others (including multicast addresses) They need to have internet access through the machine with multiple network cards. So from the point of view of each machine they define a LAN in which it is the only device and have internet access through the gateway machine.
What do I need to do to configure these machines for the above setup?
I have set up OpenVPN server using a bridged configuration. My networking "powers" aren't that advanced, so I did this by following the openvpn tutorial for bridged servers. I have tested this with several clients connecting to my server from different locations and it works very nicely (including broadcasts).
My server's LAN IP address is 192.168.2.4, and my LAN's mask is 24. Clients connecting to my server get assigned IP address that also fall within that subnet (i.e., the 192.168.2.x pool contains both physical machines in my home and "virtual" hosts). This is what the OpenVPN walkthrough specifies:
[Code]...
I was wondering if it would be possible for the VPN to fall within a different subnet (such as 10.0.1.x). I would also like to do that without adding another physical NIC to my server, or changing my physical IP address. I would imagine this is possible, since that's how hamachi does it.
I have 2 routers, each are assigning IP with DHCP on. One router is plugged into cable modem second router is downstairs plugged into first router. Wire runs in WAN of second router. Each router has its own IP subset. First router assigns IP's to 192.168.1.xxx second router IP's to 10.0.0.xxx
I know I can use the second router as an AP with DHCP OFF. BIG BUT though is my wifi verizon phone got no IP assigned when running like that and wirelessly connecting to the second router. Laptops were just fine. SO, I reconfigured second router with its own subset IP being handed out. Now verizon phone is perfect.
How can I share files between connected PC's using it this way?
I have a strange problem regarding networking on the Alix 2d13 running Ubuntu 10.04. The Alix has 3 physical network interfaces, lspci says:
Code: 00:09.0 Ethernet controller [0200]: VIA Technologies, Inc. VT6105M [Rhine-III] [1106:3053] (rev 96) Kernel driver in use: via-rhine Kernel modules: via-rhine 00:0a.0 Ethernet controller [0200]: VIA Technologies, Inc. VT6105M [Rhine-III] [1106:3053] (rev 96) Kernel driver in use: via-rhine Kernel modules: via-rhine
[Code]...
It seems, if more than one cable is connected, a random hardware port is chosen as eth0-eth2. If only one cable is connected the port that is connected is chosen as eth0-eth2. Any idea what's going wrong here?
I recently installed Ubuntu Server 9.10 with the intent of using it as a platform for running a couple of Windows XP virtual machines along with Linux/Ubuntu.
I had no problems getting the server installed. Had no problems getting the network up and running so that I had access to both my internal network as well as external connectivity to the internet. Had no problems getting a VM installed and putting Windows XP inside of it. Had no problems setting up a bridge between the WinXP virtual machine and the physical ethernet card (eth0).
What Im having trouble with is figuring out how to bridge from multiple VMs AND Ubuntu natively through one physical ethernet card.
When I set up the bridge, it knocks out the static IP address of the ethernet card that was set up initially with Ubuntu when first installed before the VM was created and installed. Therefore, connectivity within Ubuntu natively is lost.
Similarly, am having trouble figuring out how the second VM (also going to be running WinXP) is going to get its connectivity since it doesnt seem to like me setting up 2 bridges to the same physical ethernet interface card.
I need all 3 machines to have static IP addresses and be visible/accessible from the external network for either web/mail/dns/etc servers on the Ubuntu side and for remote PC control functionality on the VM side.
I have tried setting up alias ethernet interfaces (eth0:1, eth0:2, eth0:3) with static addresses which work fine from native Ubuntu in presenting multiple IP addressees, but it seems that Im not permitted to bridge to these alias interfaces.
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
I am totally new to Linux and have just installed ubuntu 10.10. After configuring the network interface via dhcp I started getting these messages that come in so frequently I can't configure anything else.
[87.186415] Stack:
Why I am getting this messages and more importantly how do I get rid of them.
I have been issued 16 IP's my my ISP. Obviously my subnet is 240. is there a way I can take one or any of those IP's and somehow make them into their own network on my end? Really what I am wanting to do is take my 2 DNS servers that are really on the same network far as my assigned subnet and IP's, but take at least one of those IP's and sub-network? it out to the other DNS so it appears to be on another net work. like just simply assign it 192.168.219 255.255.255.255 or something like that.
Have you ever created a VPN connection between two LANs which are geographically far away? For example LAN1 is 192.168.1.0 and LAN2 is 10.0.0.0. If I am in LAN1 I would like to be able to ping 10.0.0.1 and get packets back.
I am trying to do it with OpenVPN. I can connect two computers from both LANs using their virtual IP but I can't do that with their private IP. I think the solution must be in creating a bridge or using the "push" command of OpenVPN, unfortunately I haven't found clear information within the internet.
So I have 3 home routers, 1 belkin and 2 netgear. I have my ISP internet connection coming into my belkin, which I then have the 2 netgear routers (from their WAN) plugged into Belkins LAN ports. Now the Ubuntu computers I have on Netgear LAN 1 and Netgear LAN2 can get to Belkin just fine (at 192.168.1.1), but I am unable to access a computer on LAN1 from a computer on LAN2 and vice-versa. My Belkin is 192.168.1.1, my Netgear1 WAN is 192.168.1.100 and Netgear2 WAN is 192.168.1.200. I have the netgears both assigning DHCP IP's from range of 192.168.0.100 to 192.168.0.150 on their LAN ports.
Now, I have set Netgear LAN1 port 80 NAT'd to go to one of my computers on it. I try to access 192.168.1.100:80 from a computer on Netgear LAN2 network and it say host unreachable.What am I doing wrong?
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
The goal is to make connection calls (ssh, ping, ...) possible from one LAN (LAN-1) to a number of (at the moment two) separate smaller LANs.These smaller LANs (LAN-2a, LAN-2b, ...) have exact same specifications (same IP range, same number of nodes, ...)!The idea is to use a Fedora box (release 14 with 2.6.35.6-45.fc14.i686) and implement an appropriate iptables routing/forwarding.The Fedora box has three network interfaces:
- eth0 (aaa.bbb.ccc.m) on LAN-1 (aaa.bbb.ccc.0/24) - eth1 (ddd.eee.fff.n) on LAN-2a (ddd.eee.fff.0/27) - eth2 (ddd.eee.fff.p) on LAN-2b (ddd.eee.fff.0/27)
entries for connecting to broadband. Was OK with ubuntu 8.04 which had boxes for DNS server, etc. The 10.04 asks for MAC address (?) and there is a space for "DHCP client ID". I don't understand these terms. how I may proceed, especially exact syntax for any command line work. I am in Chennai/Madras, and have a BSNL wired broadband connection to my Dell laptop.
My DNS server is baring 192 series IP for ex: 192.168.10.100, need to configureloadbalancer IP in that DNS server, where loadbalancer is baring 172 series IP. for ex : 172.56.67.19.is it possible to cofigure the loadbalancer ip in DNS server? if it is, please let me know the configuration details and procedure.
"Need help with entries for connecting to broadband. Was OK with ubuntu 8.04 which had boxes for DNS server, etc. The 10.04 asks for MAC address (?) and there is a space for "DHCP client ID". I don't understand these terms. I will appreciate some step-by-step instruction or example of how I may proceed, especially exact syntax for any command line work. I am in Chennai/Madras, and have a BSNL wired broadband connection to my Dell laptop." I have repeated what I tried in the ubuntu forum without success. I'm really in newbie category, and not comfortable with computer or internet jargon. I can still connect with ubuntu 8.04 and firefox, just once daily. In a later post I also added: In Ubuntu 8.04 there was a system> admin> network tab (missing in 10.04). In the connections tab "wired" was checked. The general tab had my computer name (tsq-laptop) for host, and a blank box for domain name. The DNS tab had 192.168.1.1 in the servers box (presumably my service provider BSNL), and nothing in search domains. The hosts tab had a list of IP addresses and aliases, the first few being:
127.0.0.1 - local host 127.0.1.1 - tsq-laptop ::1 - ip6 local host ip6 loopback fe00:: - ip6 localnet, .... (and a few more such I think most (or all) of these entries were generated automatically by the system, since I don't understand the jargon at all! I don't recall having any difficulties then, some two years back.Before that I had major problems in using the internal modem for a dial-up connection, but got detailed help by e-mail/internet from some really knowledgeable people in Europe and elsewhere regarding linmodem configuration, which I followed blindly and it worked! In 10.04 there is only the taskbar icon to edit settings, and it has a different structure. It asks for MAC address (example 00.11.22.33.44.55). Other info required is IPv4 settings, DHCP client ID, about routers and other stuff. There may be other system settings to be made, which I can try with proper guidance. The ubuntu help page gives very sketchy information, and the images are not clear at all. No response to that till second day. Subsequently: In the 'wired' tab the 'routes' button popped a table where I entered address as 127.0.0.1, and netmask as 255.0.0.0, leaving gateway and metric blank. This is all geek stuff for me - I'm an old-fashioned engineer from the slide-rule era!
Should all this have been in the newbie forum? Thanks, =TeeSquare=
I am using Endian firewall in order to connect two LANs but I am getting many problems and I don't know how to solve them since there is no much information about this software on the internet. Do yuo know good webpage about this powerful program?
Does anyone havea good tutorial on Fedora's network scripts, how to edit them, in what order they are called, etc. What I want to do seems simple, but something in the bootup keeps changing it. Right now, I have an image of Fedora Core 7 created in a server with 2 Ethernet cards. I need to specify static IP addresses for each card. Thats simple, and I did that. Now, heres the tricky part, I need to be able to clone this image and place it onto other exact duplicates of the hardware, and have all of the settings stay the same.
What happens here, is that eth0 and eth1 are stored somewhere as devices, and upon boot on a different machine, the Fedora will mount new network cards(different MAC addresses) as eth1 and eth2. It then mvoes my ifcfg-eth0/1 to a backup, and creates two brand new network setting's files, which initialize to DHCP. This creates an issue, becuase these machines do not have monitors nor keyboards attached, nor is their a DHCP server, so its a pain when I swap the machine out, to have to go in with a keyboard/mouse/monitor and reconfigure the network settings before I can connect to it over the LAN.
So does anyone have any advice on how to do this? No matter what i tried, booting the image in a new PC caused Fedora to create two new devices and create brand new network settigns for them, both initialized to DHCP. Hell, I wouldn't care if it created brand new devices, if it would initialize them to static IP addresses that I am expecting.
First off I would like to install a GUI for samba. After that I want to set up my network so that router stays as the server for the network I have four windows computers already hanging off of the router. This machine which has Slackware on it is hardwired, directly connected, to the router via cat-5 cables. I have samba installed already and I just need to configure it correctly.
1. My machine [running Karmic Koala] is part of a corporate LAN with NIC details below
Quote:
2. My routing table:
Quote:
3. The network printer's details [as read from the printer's display interface]:
Quote:
My question:
This printer can be discovered by windoze machines using "Find printers" and then added. [Am not sure how this works!]
But when I try to discover the same from my ubuntu machine, its not getting discovered. Tried pinging the ip [172.20.254.158] which gives the following:
Quote:
Now I tried fiddling around with the route command along with good amount of googling but to no avail.
1. Is there a way I could add that printer to my machine?
2. If yes, how could I? Does it involve adding routes?
I have to run multiple instances of apache on the same physical machine, as we have different OAM policies for different domains.is in the httpd.conf file can I have ServerName same in two instances of apache, like
ServerName: prod_machine (actual machine name)
In the vhconf files I do have different servernames for virtual hosts. Apache instances are running on same IP but different ports. I am including various vhost files in the main httpd.conf file. Can I skip servername in the main httpd.conf file and include different servernames in the virutal hosts configs. OS: Solaris10
How to create multiple Logical Groups out of a single Physical Volume? Here is the Physical Volume I have created:
Code: # pvdisplay --- Physical volume --- PV Name /dev/sda9 VG Name myVG1 PV Size 54.88 MB / not usable 2.88 MB Allocatable yes PE Size (KByte) 4096 Total PE 13 Free PE 11 Allocated PE 2 PV UUID bon4Ao-vmgC-aP1h-EC9X-w3tN-YXNu-0N2dAw
This is how I am creating a Logical Group out of the above Physical Volume:
Code: # vgcreate myVG1 -s 4m /dev/sda9 Display:
Code: # vgdisplay --- Volume group --- VG Name myVG1 System ID Format lvm2 Metadata Areas 1 Metadata Sequence No 5 VG Access read/write VG Status resizable MAX LV 0 Cur LV 2 Open LV 1 Max PV 0 Cur PV 1 Act PV 1 VG Size 52.00 MB PE Size 4.00 MB Total PE 13 Alloc PE / Size 2 / 8.00 MB Free PE / Size 11 / 44.00 MB VG UUID O6ljYC-bflz-EUTd-nf34-8gYe-Fh39-Bh3cOg
But I am unable to create one more Logical Group out of this Physical Volume. Can we accomplish it? Or do we always extend our current Logical Group to utilize the available space of a Physical Volume?
I am trying to configure my IPv6 network. My computers are behind a Fedora gateway IPv6-configured, which is working great. But for computers inside my network, it seems I am getting only internal addresses from DHCP. Here is my ifconfig for an internal computer:
By fiat I must distribute my homedirs across multiple physical disks/partitions. Unfortunately this is not open to discussion so obvious solutions like a lvm home partition are not available to me. The issue: Users created with homedirs on the main home partition (the one created as home during the f13 install) behave as expected, but if I create them on a different partition (home9 for the sake of this example) the users are not able to login (dropped back to login screen), nor run x-apps if su -'d to in a konsole.
If I 'su - <user-on-home9>' in a konsole, I get delivered to the /home9/<user-on-home9> as expected, but x-apps fail with the error: 'cannot open display: :0'. This can be temporarily fixed with the command 'xhost +SI:localhost:<user-on-home9>', but I would rather fix it permanently at the source.
This appears to be an selinux problem from the following.The contexts of the the two rootdirs are the same
% ls -Zd /home /home9 drwxr-xr-x. root root system_u:object_r:home_root_t:s0 /home drwxr-xr-x. root root system_u:object_r:home_root_t:s0 /home9 but when I create the users (using useradd or the gui) their respective contexts differ: % ls -Zd /home/user5 /home9/user6
[Code]...
So, my questions for you selinux experts are 1) is it possible to have homedirs spread across multiple partitions with selinux, and if so, how, 2) Why, even when I manually set the dir/file contexts to match a properly functioning user5 from /home, do users from /home9 still not work (as far as login and x-apps).
when I start my application it creates a message queue and forks a process. The child process reads multicast packets from the network and writes to message queue. The parent process reads packets from message queue and compares source ip and sequence number (it is part of payload) with last 64K packets received to see if it has received a duplicate packet. I am using message queue as a buffer because I do not want child process to drop any packets while it is comparing it with previously received packets. The message queue is large enough to contain 64K packets. To compare the old packets I am using array of structures as circular buffer. During a spike I may receive 100 - 120 packets per milli second.
When I run my application, the parent process keeps up with the child process, I can see that with "ipcs -q". After about 30 seconds it cannot keep up and the size of message queue keeps increasing until it is full. When I run "top" I can see that one CPU/core is hundred percent busy while other 7 cores are idle. It seems that both processes are running on same core and the child process gets interrupts everytime there is a packet on the net and starves the parent process.I am running RHEL 5. The system has 24GB memory and my application is the only application running on it. It is a HP G6 server.
I have set up a SSL site for my default Apache server. But I want to set up multiple SSL sites for multiple IP based as well as Name based Virtual hosts. Is there a way where in I can include definitions for SSL certificates and keys within the Virtual Host directive in the httpd.conf, so that I can specify separate key and cert file for every Virtual Host.
Noobish question on multibooting multiple Linux distros. I have four of the current major Linux distributions. Each has been installed and run individually (no other Linux distribution installed) in a dual-boot configuration with Windoze. No problem.
What I want to do is install all four Linux distributions and multiboot them. Reading the internet it would seem this is a simple task with GRUB. The short version being - install a Linux distro with a separate /boot partition for GRUB and use GRUB to boot the other Linux distros from the GRUB boot menu.
So I installed one of the Linux distros with a separate partition for /boot. The distro installer installed GRUB in /boot and correctly setup a dual-boot configuration with Windoze. GRUB was installed to the MBR. Next I installed a second Linux distro in its own root partition and told the distros installer NOT to install GRUB to the MBR, but rather, to the boot sector of the root partion of the second Linux distro. Installation was uneventful (and I could access the second Linux partition from the first installed Linux distro, things looked ok). Then I added to following to the installed (MBR - /boot) GRUB's menu.lst:
Code: title lixux distro 2 root (hd0,7)
chainloader +1 After which I rebooted the system and the new entry for the second Linux distro now appears in the GRUB boot menu. I selected the second Linux distro from the boot menu and got the following GRUB error: Error 5 : Partition table invalid or corrupt [Code]....
I have a problem with snmp answers being empty or having spaces.
What I already have:
#get all interface indexes (if you wonder - I'm working for a cable company and different cablemodems have different number and types of interfaces):
The problem is the physical address which is sometimes empty and the description which has spaces. So I'm doing 2 snmpgets which is slower than 1 snmpget (sometimes I have up to 18 interfaces).
I'm trying to explain it a bit simpler.
Interface 5 gives me back the following lines:
Ethernet CPE Interface
Now the first line should go into variable ifadm, 2nd line should go into variable ifoper, 3rd line should go into variable ifspeed, 4th line should go into variable iftype, 5th line (which is empty) should go into variable ifphys and finally 6th line (which has spaces) should go into variable ifdescr
I was wondering if anyone has a solution to my problem: I run Ubuntu 11.04 on my laptop (everything is great) but when I come home I like to connect it to a larger monitor. This will work fine, but presently the only way for me to get that to work is to go into my nVidia settings and reconfigure the displays every time I do this. Is there I can make my system recognize it should change displays as soon as I plug in the monitor?