How to give 2 different gateway IP addresses for 2
different interfaces in same system ?
Answers were Sorted based on User's Feedback
Answer / none
route add -net 192.168.2.0 netmask 255.255.255.0 gw
192.168.0.2 dev eth0
route add -net 192.168.1.0 netmask 255.255.255.0 gw
192.168.0.3 dev eth1
Is This Answer Correct ? | 17 Yes | 2 No |
Answer / fuzail usmani
Run ifconfig command.u got 2 interface with eth0 & eth1 name.
#ifconfig eth0 172.16.68.2 netmask 255.255.0.0 gw 172.16.68.1 up
#ifconfig eth1 192.168.0.2 netmask 255.255.255.0 gw
192.168.0.1 up
Is This Answer Correct ? | 14 Yes | 0 No |
Answer / ayyappan .m
route add -net 192.168.2.0 netmask 255.255.255.0 gw
192.168.0.2 dev eth0
route add -net 192.168.1.0 netmask 255.255.255.0 gw
192.168.0.3 dev eth1
This will work temporary, if you want to make as a permanent.
Create the file route-eth0 in
/etc/sysconfig/network-scripts/ make the entry
Or
Make the entry on /etc/rc.local
#cat /etc/sysconfig/network-scripts/ifcfg-eth0
#cat /etc/sysconfig/network-scripts/ifcfg-eth1
This two files ONBOOT=yes
#service network restart
Is This Answer Correct ? | 13 Yes | 1 No |
Answer / mcmarc
open each device file in
/etc/sysconfig/network-scripts/ifcfg-eth0(1)
Is This Answer Correct ? | 3 Yes | 0 No |
How can i recover the linux system after it was crashed by step by step process..
i installed clustering packages.When i try to run it getting LUCI error...what is it..??
Where is standard output usually directed?
how to recollect root password
what is the difference between fork and thread ? and parent and child process in fork system call?
will u plz send me the complete steps of installation of red hat linux on intel's core 2 duo processor?
What is Hard mount and soft Mount?
1.how to know cpu information on linux system? 2.how to hardware information on linux system? 3.if we add the new user what are the files will be changed? 4.how to remove the cache in squid server ? 5.how to know ur useing 32bit r 64 bit os ? 6.at booting process at init level which file it is reads? 7.if ur system performance is show what can u do ? 8.if ur file system corrupted what can u do ? fsck also not working? 9.how did u do health check in linux? 10.how did u check system performance in linux? 11.how did u create NIS server? give me the steps ? 12.how did u add a packages in linux ? 13.how did u know depended packages for any package useing rpm how u know? 14.how did you monitor cronjobs in linux ? 15.what is the use of logroted? and how did u do ? 16.port no is already in use so what canu do for that in http? 17.how to samba configurated are not ? there are any command for that ? 18.how to create a NTP Client using commands ? not as graphical... 19.how to know how many members are using any service? like ftp are any other services? 20.what is the differences between cmp,diff,comm commands?
what is difference between TFTP abd FTP?
cups stands for..?
Why is it suggested to disable journalism in ext4 filesystem?
How to load the old kernel without rebooting server