server with 2 ethernet cards
Hello,
I 've a problem with my net.
I've xubuntu 7.10, on a pc with 2 ethernet cards.
I want create a server with firewall
ip eth0=n,m,0,254
ip eth1=n,m,1,2
gateway(n,m,0,254) _____ server
my net--->(layer n,m,0,x)-->|eth0 |
| | gateway eth1
|_eth1|--->layer n,m,1,x----------->(modem adsl)--->INTERNET
ip n.m.1.1
I can configure both eth0 e eth1 but i cannot configure the route between the two cards (I need to see internet in my net..) I can see from the server internet...
How can i create the route between eth0 and eth1? I've tried with: route add -net n,m,0,254 netmask 255.255.255.0 gw n,m,1,1 but it says that the netmask is unuseful and when i don't give the netmask this become automatically 255.255.255.255 ....
Please help me..
Realizing the promise of Apache® Hadoop® requires the effective deployment of compute, memory, storage and networking to achieve optimal results. With its flexibility and multitude of options, it is easy to over or under provision the server infrastructure, resulting in poor performance and high TCO. Join us for an in depth, technical discussion with industry experts from leading Hadoop and server companies who will provide insights into the key considerations for designing and deploying an optimal Hadoop cluster.
Sponsored by AMD
If you already use virtualized infrastructure, you are well on your way to leveraging the power of the cloud. Virtualization offers the promise of limitless resources, but how do you manage that scalability when your DevOps team doesn’t scale? In today’s hypercompetitive markets, fast results can make a difference between leading the pack vs. obsolescence. Organizations need more benefits from cloud computing than just raw resources. They need agility, flexibility, convenience, ROI, and control.
Stackato private Platform-as-a-Service technology from ActiveState extends your private cloud infrastructure by creating a private PaaS to provide on-demand availability, flexibility, control, and ultimately, faster time-to-market for your enterprise.
Sponsored by ActiveState
| Non-Linux FOSS: libnotify, OS X Style | Jun 18, 2013 |
| Containers—Not Virtual Machines—Are the Future Cloud | Jun 17, 2013 |
| Lock-Free Multi-Producer Multi-Consumer Queue on Ring Buffer | Jun 12, 2013 |
| Weechat, Irssi's Little Brother | Jun 11, 2013 |
| One Tail Just Isn't Enough | Jun 07, 2013 |
| Introduction to MapReduce with Hadoop on Linux | Jun 05, 2013 |
- Containers—Not Virtual Machines—Are the Future Cloud
- Non-Linux FOSS: libnotify, OS X Style
- Linux Systems Administrator
- Lock-Free Multi-Producer Multi-Consumer Queue on Ring Buffer
- Validate an E-Mail Address with PHP, the Right Way
- Senior Perl Developer
- Technical Support Rep
- UX Designer
- RSS Feeds
- Introduction to MapReduce with Hadoop on Linux
- user namespaces
17 min 25 sec ago - yea
43 min 14 sec ago - One advantage with VMs
3 hours 11 min ago - about info
3 hours 44 min ago - info
3 hours 45 min ago - info
3 hours 46 min ago - info
3 hours 48 min ago - info
3 hours 50 min ago - abut info
3 hours 51 min ago - info
3 hours 52 min ago
Featured Jobs
| Linux Systems Administrator | Houston and Austin, Texas | Host Gator |
| Senior Perl Developer | Austin, Texas | Host Gator |
| Technical Support Rep | Houston and Austin, Texas | Host Gator |
| UX Designer | Austin, Texas | Host Gator |
| Web & UI Developer (JavaScript & j Query) | Austin, Texas | Host Gator |
Free Webinar: Hadoop
How to Build an Optimal Hadoop Cluster to Store and Maintain Unlimited Amounts of Data Using Microservers
Realizing the promise of Apache® Hadoop® requires the effective deployment of compute, memory, storage and networking to achieve optimal results. With its flexibility and multitude of options, it is easy to over or under provision the server infrastructure, resulting in poor performance and high TCO. Join us for an in depth, technical discussion with industry experts from leading Hadoop and server companies who will provide insights into the key considerations for designing and deploying an optimal Hadoop cluster.
Some of key questions to be discussed are:
- What is the “typical” Hadoop cluster and what should be installed on the different machine types?
- Why should you consider the typical workload patterns when making your hardware decisions?
- Are all microservers created equal for Hadoop deployments?
- How do I plan for expansion if I require more compute, memory, storage or networking?



this image is not what i mean
The original structure was
mynet (level0)-->server eth0(level0)-->sever eth1(level1)-->modem adsl(level1)(internet)
mynet has the gateway that is the the eth0's ip and the eth1's gateway is the modem adsl ip
thanks..
What you're looking for is
What you're looking for is probably not a route.
I read your post a few times and I believe I understand it. You can post the real ips here I don't think it will hurt.
I think what you're saying is, say for example, eth0 = 192.168.0.7. And eth1 = 192.168.1.1.
You want to route the 192.168.0.x "stuff" (or packets) to 192.168.1.1 so that it may traverse out the modem to the public internet.
But the problem is, the modem is set for Nat mode, and probably will only nat addresses it knows about - 192.168.1.x!
You could tell your modem to be a bridge and setup IPtables and forwarding on your Linux machine, but you may also have to delve into pppoe as well. (Most ADSL providers use pppoe).
A simpler solution may be that, the routing is working and the natting isn't, reconfigure the modem to broaden it's network!
In other words if the network on the modem accomodates 192.168.1.X, change the subnet mask from 255.255.255.0 to 255.255.0.0 ... then it will handle 192.168.x.x!
Chances are though, the dsl modem is better at being a modem than it is being a router. I would recommend you get a dedicated piece of equipment like a Linksys WRT router (they run Linux too!), put the modem in "bridge" mode (your provider can tell you how) and have the WRT do pppoe and Nat.
You'll benefit from the power of Linux, it's a more powerful device than the puny modem your provider provides, but without the electricity usage of a dedicated PC.
As for the extra ethX nic? Use it for a test lab! Hook another linux machine on the other side and play around on the inside of your network.
-- FLR or flrichar is a superfan of Linux Journal, and goofs around in the LJ IRC Channel