LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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:48 PM   #1
loewen
LQ Newbie
 
Registered: Sep 2004
Posts: 14

Rep: Reputation: 0
IP Alias on Fedora Core 6 not working right, Operation not permitted


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, 12:31 AM   #2
kstan
Member
 
Registered: Sep 2004
Location: Malaysia, Johor
Distribution: Dual boot MacOS X/Ubuntu 9.10
Posts: 851

Rep: Reputation: 31
try change eth2:0 to eth2:1
 
Old 11-17-2006, 09:47 AM   #3
irado
LQ Newbie
 
Registered: Dec 2005
Posts: 3

Rep: Reputation: 0
hi.
think that either you typed wrong data or it is realy wrong.

If you have 2 nic's, it MUST begin at 0 (zero), say:

eth0
eth1
[..]

and for the aliases, it must follow these rules:
eth0:0
eth0:1

obviously, you must change the 0 (zero) by your real nic identity number.

do:

dmesg | grep -i eth

and

lspci

to read HOW your Linux is naming your nic's.
 
  


Reply



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
Operation not permitted jakkals Linux - General 3 09-26-2005 07:30 PM
su - operation not permitted jrtayloriv Linux - Newbie 2 06-09-2005 09:27 PM
Operation not permitted when using mkdir valkur Linux - Hardware 4 04-01-2005 06:25 PM
operation not permitted jamaso Slackware 2 05-08-2004 05:55 AM
Operation not permitted FrozenShadow23 Linux - Newbie 6 10-05-2003 05:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10: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
Open Source Consulting | Domain Registration