How to set virtual IPs on startup (and a super bonus question!)
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
How to set virtual IPs on startup (and a super bonus question!)
Good day!
These questions pertain to FC7.
I would like to set the following IPs on my computer whilst it starts up:
192.168.11.105
192.168.1.105
Currently I just type in
ifconfig eth2:0 192.168.11.105
ifconfig eht2:1 192.168.1.105
Also I cannot connect to the internets or the google with said server. I can SSH and RDP into it(with thinstuff) but that is it. I cannot ping yahoo or resolve any names but /etc/resolv.conf is hunky dory. The NIC for that interface is eth1.
Here's what I have in the ultra ghetto fire wall script for DNS
#this is to allow DNS to work.
iptables -A OUTPUT -p udp -o eth0 --dport 53 --sport 1024:65535 -j ACCEPT
iptables -A INPUT -p udp -i eth0 --sport 53 --dport 1024:65535 -j ACCEPT
Eth0 connects me to the outside.
Oh, is there a way to let me ping the internal network, 192.168.x.x whilst preventing pinging from the outside? Internal is on eth2 external is on eth0. Here is what I have for the pinging:
#iptables -A OUTPUT -m state -p icmp --state INVALID -j DROP
#iptables -A INPUT -p icmp -m icmp --icmp-type echo-request -j REJECT
#iptables -A OUTPUT -p icmp -m icmp --icmp-type echo-reply -j REJECT
#iptables -A INPUT -p icmp -j REJECT
#iptables -A OUTPUT -p icmp -j REJECT
I won't claim to be a routing expert, but that doesn't look right to me. I'd assume the the second line should be eth2:0 for example, and your default gateway eth0. Did you set these routes?
Edit - does f7 have system-config-network on it?
Last edited by billymayday; 06-24-2008 at 02:14 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.