LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-14-2006, 10:28 PM   #1
loewen
LQ Newbie
 
Registered: Sep 2004
Posts: 14

Rep: Reputation: 0
IP Alias on Fedora Core 6


Good day.

I am relatively new to Linux so please bear with me.

I am trying to set up my linux box as a gateway. I have 2 NICs one is for my internal Lan and the other to the internet. I have two public IPs and I want to set it up so that hitting any of the two IP goes to my FC6 box.

Ive setup the following scripts:
/etc/sysconfig/network-scripts/ifcfg-eth2
DEVICE=eth2:0
ONBOOT=yes
BOOTPROTO=static
IPADDR=202.91.162.50
NETMASK=255.255.255.224
GATEWAY=202.91.162.30

/etc/sysconfig/network-scripts/ifcfg-eth2:0
DEVICE=eth2:0
ONBOOT=yes
BOOTPROTO=static
IPADDR=202.91.162.51
NETMASK=255.255.255.224
GATEWAY=202.91.162.30

/etc/sysconfig/network-scripts/ifcfg-eth4
DEVICE=eth4
HWADDR=00:0a:5e:78:43:18
ONBOOT=yes
NETMASK=255.255.255.0
IPADDR=192.168.1.1
NETMASK=255.255.255.0
TYPE=Ethernet

ifconfig:
eth2 Link encap:Ethernet HWaddr 00:14:BF:598:BC
inet addr:202.91.162.50 Bcast:202.91.162.255 Mask:255.255.255.224
inet6 addr: fe80::214:bfff:fe59:d8bc/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:243524425 errors:0 dropped:39 overruns:0 frame:0
TX packets:233951453 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3236639444 (3.0 GiB) TX bytes:503261719 (479.9 MiB)
Interrupt:74 Base address:0xc100
eth2:0 Link encap:Ethernet HWaddr 00:14:BF:598:BC
inet addr:202.91.162.50 Bcast:202.91.162.255 Mask:255.255.255.224
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:74 Base address:0xc100


As you can see, I tried setting up an alias on my eth2. eth2:0 actually goes up but when I try to ping my public IP's from within my FC6 box, it says something like :

ping: sendmsg: Operation not permitted

And when I tried to ssh from a remote machine (outside my network, from internet), I can get in only if I use IP assigned to eth2, but not the IP assigned to eth2:0.

I want to set up this IP on this same box so I can forward ssh requests to another linux box on my network.

Need help badly. Thanks
 
Old 11-15-2006, 01:17 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,570

Rep: Reputation: 171Reputation: 171
Check your firewall. The problem with local ping is definitely because of that. With standard firewalling setup you have a list of IP addresses (usually just one) of the machine. You probably don't have rules for your second IP and with default DROP policy everything is just dropped.
 
Old 11-20-2006, 02:44 PM   #3
loewen
LQ Newbie
 
Registered: Sep 2004
Posts: 14

Original Poster
Rep: Reputation: 0
IP Alian on Fedora Core 6

Thanks,

YOu are absolutely right. Dropped packets on my 2nd interface.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Setup Fedora core 3 & Redhat 7.2 software development environment under Fedora core 5 powah Fedora 1 06-16-2006 10:25 AM
Upgrade Fedora Core 4 (FC4) to Fedora Core 5 (FC5) hangs vogelap Fedora - Installation 10 05-22-2006 09:00 AM
can fedora core 4 be upgraded to fedora core 5 without a full reinstall lcornea Linux - Software 2 05-10-2006 07:58 AM
Fedora Core 2 alias settings mcpchandra Fedora 3 10-27-2004 04:38 PM
anti alias with flubox and Fedora core 2 simao Fedora 0 10-25-2004 11:13 AM


All times are GMT -5. The time now is 02:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration