thanks for your solution, actually my isp gave me one router where dhcp enable, when i connect with a windows pc then automaticall ip address alloted and i can use internet. Now thing is that the ip address which that router assign its private address 192.168.1.0 network, whereas isp gave me one fixed public ip. I want to use my linux server as proxy server as well mail server with that fixed ip. so can u tell me what to do with that 2 nic? my eth0 nic is for my lan and eth1 for wan. when i assign 2 ips for 2 nic then i m not able to ping to my server. why its happened? pls help
Main Topics
Browse All Topics





by: jar3817Posted on 2009-07-23 at 09:46:18ID: 24927269
Did they give you a real static IP, or are they giving you a reservation in DHCP so you get the same address every time?
ipts/ifcfg -eth1 file change the params of the nic. For a real static IP, all you really need is something like this:
Edit your /etc/sysconfig/network-scr
DEVICE=eth1
ONBOOT=yes
BOOTPROTO=static
IPADDR=x.x.x.x
NETMASK=255.255.x.x
GATEWAY=x.x.x.y
Fill in the blanks with the info they give you. Then just restart the nic with
/etc/rc.d/init.d/network restart