LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 07-10-2006, 08:34 AM   #1
DarkSun4241
LQ Newbie
 
Registered: May 2004
Posts: 19

Rep: Reputation: 0
Ip Alias problem


I having problem with fedora core 5 and ip aliasing. This machine is used as a email server and dns server. The dns server is the on eth0:1. The problem is this interface seem to be going up and down. One minute I can get to it from the outside world and next I can't.
I thought that it maybe be firewall/router but the I have seen the same problem with a machine on the same subnet. I copy this ifcfg file from the old fedora core 1 machine. It never gave me any problems before.

ifcfg-eth0:1
DEVICE=eth0:1
BOOTPROTO=static
IPADDR=XXX.xxx.xxx.xxx
NETMASK=255.255.255.xxx
ONBOOT=yes
GATEWAY=xxx.xxx.xxx.xxx
TYPE=Ethernet
USERCTL=no
PEERDNS=no


eth0 Link encap:Ethernet HWaddr 00:07:E9:042:98
inet addr:xxx.xxx.xxx.xxx Bcast:xxx.xxx.xxx.xxx Mask:255.255.255.xxx
inet6 addr: fe80::207:e9ff:fe04:d298/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:23036582 errors:0 dropped:0 overruns:0 frame:0
TX packets:5467666 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2816637588 (2.6 GiB) TX bytes:1485310672 (1.3 GiB)
Base address:0x2040 Memory:fe6c0000-fe6e0000

eth0:1 Link encap:Ethernet HWaddr 00:07:E9:042:98
inet addr:xxx.xxx.xxx.xxx Bcast:xxx.xxx.xxx.xxx Mask:255.255.255.xxx
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Base address:0x2040 Memory:fe6c0000-fe6e0000

eth1 Link encap:Ethernet HWaddr 00:07:E9:042:99
inet addr:192.168.0.42 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::207:e9ff:fe04:d299/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:78900510 errors:0 dropped:0 overruns:0 frame:0
TX packets:63003691 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:447790209 (427.0 MiB) TX bytes:480741600 (458.4 MiB)
Base address:0x2000 Memory:fe6e0000-fe700000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:3228279 errors:0 dropped:0 overruns:0 frame:0
TX packets:3228279 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:596852978 (569.2 MiB) TX bytes:596852978 (569.2 MiB)

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
xxx.xxx.xxx.xxx * 255.255.255.128 U 0 0 0 eth0
xxx.xxx.xxx.xxx * 255.255.255.0 U 0 0 0 eth1
xxx.xxx.xxx.xxx * 255.255.0.0 U 0 0 0 eth1
default xxx-xxx-xxx-xxx.s 0.0.0.0 UG 0 0 0 eth0
 
Old 07-11-2006, 05:29 PM   #2
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 69
Instead of ip aliasing, I think you might want to make VLAN devices (where each device responds to a separate MAC address, but there is only one physical device):
Code:
$ modprobe 8021q # This step may or may not be necessary, depending on your kernel 
$ vconfig add eth0 1
$ ip link set dev eth0.1 address 00:07:E9:04:D2:9a # Change this to a MAC address whose uniqueness you can be pretty sure of
Now you have (virtually) two separate devices (with different MAC's) that can be configured (ip, mask, bcast, etc.) completely independently of each other. See if that helps.
 
  


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
Alias question (2 commands for one alias) gflores Linux - Newbie 3 01-21-2006 12:40 AM
Sendmail alias problem ptclinuxsa Linux - General 1 01-16-2006 08:23 PM
Problem with Alias in Ksh tomcharnock Linux - Newbie 1 05-18-2005 11:59 PM
alias problem p41elvis Linux - Newbie 1 04-28-2005 10:28 AM
alias problem petarsabev Slackware 1 10-12-2003 02:40 PM


All times are GMT -5. The time now is 06:04 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration