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 |
what is the use of runlevel 4 in redhat linux? in which cases it will use.
what is the difference between fork and thread ? and parent and child process in fork system call?
why accounting Software does not support on linux?
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?
Why is it suggested to disable journalism in ext4 filesystem?
Where is standard output usually directed?
When you install RedHat what is the kernel mode ? What is kernel compilation / upgrade ?
How can i recover the linux system after it was crashed by step by step process..
My Linux server in the two lan card one lan card is ok working but second lan card after restart daily lan card deactivate and then manual activate then properly working but after restart repeat this problem.(Fedora O.S.) Pls tell me solved this problem.
What are RPM?s, what do they offer?
What is the use of DNS Server? Name other servers works same as like DNS?
How to Trouble shoot performance issue in RHEL administration ? please give to one example