#1  
Old 23rd February 2009, 12:10
Satya Satya is offline
Junior Member
 
Join Date: Feb 2009
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
Exclamation Ip config problem

Hi

I have installed Ubuntu 8.10 LTS ver. want to set as router.
I am having static ip on eth0 and private ip on eth1

/etc/networks/interfaces

#primary interface
autho eth0
address
subnet
xxx
xxx
xx


# secondary interface
address 192.168.0.2
subnet 255.255.255.0
network 192.168.0.0
broadcast x.x.x.

saved
/etc/sysctl.conf
forwarding set as 1
when i restart networking service i am getting error
sudo /etc/init.d/networking restart
* Reconfiguring network interfaces... postconf: fatal: open /etc/postfix/main.cf: No such file or directory
SIOCADDRT: File exists
Failed to bring up eth0.
* if-up.d/mountnfs[eth1]: waiting for interface eth0 before doing NFS mounts
postconf: fatal: open /etc/postfix/main.cf: No such file or directory
[ OK ]

can't distribute internet......!
can anybody guide me.........!
Reply With Quote
Sponsored Links
  #2  
Old 24th February 2009, 20:18
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

Was networking working before? What exactly did you change?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
The Following User Says Thank You to falko For This Useful Post:
Satya (25th February 2009)
  #3  
Old 25th February 2009, 05:37
Satya Satya is offline
Junior Member
 
Join Date: Feb 2009
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
Default

I am setting this server first time.

I have change file


vi /etc/network/interfaces

in this file i have set eth0 with static ip supplied by ISP with DNS.

for second interface eth1
i have assign private ip
address 192.168.0.2
subnet 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255

than i have saved and restart networking service.

than i have change
/etc/sysctl.conf
ip4_....... = 1

for working as Router.

again restarted service.

Now on client pc i have set ip address and gw as 192.168.0.2
i am not able to access internet.
on server i can ping google.com or anyother site.
Please help me if u can to set as gateway server.
Reply With Quote
  #4  
Old 19th March 2009, 08:36
Satya Satya is offline
Junior Member
 
Join Date: Feb 2009
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by falko View Post
Was networking working before? What exactly did you change?
I am setting Ubuntu 8.10LTs server first time, but i can access internet on server. I want to set server as a router.
Reply With Quote
  #5  
Old 19th March 2009, 09:47
Tomas Tomas is offline
Junior Member
 
Join Date: Mar 2009
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
 
Default

Hello,
I believe you want to setup something like this:
http://www.howtoforge.com/nat-gatewa...tu-8.10-server

Take a look at this howto and you should be good to go.

However, I don't think that setting up server as router is directly associated with ISPConfig somehow. Or are you using ISPConfig on the same server?
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail -Ubuntu 8.04 c4rdinal HOWTO-Related Questions 112 23rd August 2011 11:49
Noob config Problem nashchris Installation/Configuration 1 24th December 2008 11:36
Prevent Apache config files from being overwritten ehsan Installation/Configuration 3 17th September 2007 11:52
ISP Config Ubuntu 7.04 Problem...Help Me ! wiyana Installation/Configuration 2 6th September 2007 13:30
Problem with the apache (I can't start ist) M.Behrens Installation/Configuration 11 31st March 2006 11:48


All times are GMT +2. The time now is 10:54.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.