LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 01-13-2013, 12:27 PM   #1
mayhew
LQ Newbie
 
Registered: Sep 2011
Posts: 6

Rep: Reputation: Disabled
Cool in one nic and out the other


I have a linux mint 14 cinimon os and am trying to route the internet through my system. my eth0 is inbound 1000mbit ethernet, and my eth1 is a 100mbit nic planned for outbound. I am trying to setup my system to serve the net out to eth1 so i can atach 2 laptops via a switch, get internet to install gentoo.

I tried the following tutorial( http://comtech247.net/2012/01/03/how...linux-mint-12/ ) but can't get the service to start. i think im mising somthing important.

I want the most distro nuteral meathod possable (learn it once...) but if there is a linux mint spicific way thats easier, thats fine by me.

Thanks ^.^
Fen
 
Old 01-13-2013, 04:55 PM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,758

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
Here's my response to a similar question which should work on pretty much any linux system .. http://www.linuxquestions.org/questi...em-4175421004/
 
Old 01-14-2013, 05:52 PM   #3
mayhew
LQ Newbie
 
Registered: Sep 2011
Posts: 6

Original Poster
Rep: Reputation: Disabled
the very last command
Code:
iptables-save > /etc/sysconfig/iptables
results in a no such file/dir output. i think linux mint may store the tables elsewhere, or i am missing somthing. everythign else resulted in no errors. the only change needed was swaping eth0 for eth1 (my 0 connects to the router) i have saved the steps as a bash script for later use.

no internet connection is found on systems atached to eth1, any advice for dhcp setup. i tried once ( link to tutorial http://linux.bihlman.com/2012/learn-...linux-mint-12/ ) and the changes required booting from another system to fix.

thanks again for your help so far.

Fen
 
Old 01-15-2013, 02:04 AM   #4
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,758

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
If you take a look at the init script for iptables you should find where the rules are stored to be reinstated at boot.

Here's an example /etc/dhcpd.conf you can adjust as necessary:

Code:
ddns-update-style interim;

allow booting;
allow bootp;

ignore client-updates;
set vendorclass = option vendor-class-identifier;

subnet 192.168.0.0 netmask 255.255.255.0 {
     option routers             192.168.0.1;
     option domain-name-servers 192.168.0.1;
     option subnet-mask         255.255.255.0;
     range dynamic-bootp        192.168.0.100 192.168.0.200;
     default-lease-time         21600;
     max-lease-time             43200;
}
 
  


Reply

Tags
dhcp, eth1, linux mint, output, routing


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
I want to tune NIC's rps, rfs and xps value. which NIC device should I modify. nnnnnng Linux - Hardware 0 12-05-2012 04:44 AM
x86 Solaris 10 nic driver added but not attached. NIC is not detected. vectrum Solaris / OpenSolaris 0 01-22-2012 12:05 PM
can i bridge a connecting being received on a wireless nic to an Ethernet nic baronobeefdip Linux - Wireless Networking 3 01-16-2012 08:02 PM
troubles getting Gigabit NIC to work in slack 10 (HGA32T NIC) TheLinuxDuck Slackware 10 03-10-2005 04:37 PM
1st nic regular FTP, 2nd nic SSH Riselong Linux - Distributions 2 02-02-2004 05:13 PM


All times are GMT -5. The time now is 07:52 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration