How to set ip permanent
I have two network range one dhcp wihci work on 192.168.1.* and other 10.68.1.*
Now i have to set ip 10.68.1.20 and gateway 192.168.1.1 and netmask 255.255.255.0 . how to i set this parameter and which file to edit ?
I am trying using ifconfig pcn0 10.68.1.20 netmask 255.255.255.0
now this ping to range 10.68.1.* now hoe to set gateway and verify it using ifconfig command .later how to ping the ip 192.168.1.*
Thanks
[451 byte] By [
safedare] at [2007-11-26 10:26:28]

# 1
> I have two network range one dhcp wihci work on
> 192.168.1.* and other 10.68.1.*
> Now i have to set ip 10.68.1.20 and gateway
> 192.168.1.1 and netmask 255.255.255.0 .
How do you expect this to work? If your interface is on the 10.68.1.x network, it will not by default be able to reach an address on the 192.168.1.1 network.
What you need is a gateway on the 10.68.1.x network which can reach the 192.168.1.x network.
> how to i set
> this parameter and which file to edit ?
* Add the netmask to /etc/netmask, syntax:
10.68.1.0 255.255.255.0
* put the IP-address you want in /etc/hostname.pcn0
* and the defaultrouter to /etc/defaultrouter .
> I am trying using ifconfig pcn0 10.68.1.20 netmask
> 255.255.255.0
> now this ping to range 10.68.1.* now hoe to set
> gateway and verify it using ifconfig command.
ifconfig -a
ping -s <broadcast address>
> later how to ping the ip 192.168.1.*
By adding a default gateway to the system which can access the 192.168.1.x network.
> Thanks
If this doesn't solve your problem, try and rephrase it a little.. :)
7/M.