FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora User

 
 
LinkBack Thread Tools
 
Old 06-29-2012, 10:05 AM
Pablo Pérez Fernández
 
Default alias ip make eth lose its default gw

hi,

we have eth1; in the beginning it was proposed to create from eth1,
eth1.2500 and eth1.240. It did not worked cause vlan 1.2500 was not
tagged in the switch.

so they decided to leave eth1 like a physical interface with eth1.2500
config (removel vlan tag) and create eth1.240

but it did not work because when eth1.240 is up , the eth1 lose it´s
gateway using eth1.240 gateway. manually we get to assing its gateway
but its a temporal solution , cause if service network or server is
restarted it turns back. we need a permanent solution.

i attach how is the config done:


Code:


FH0089:root:/etc/sysconfig# cat network

NETWORKING=yes

NETWORKING_IPV6=no

IPV6INIT=none

HOSTNAME=FH0089

NOZEROCONF=true

GATEWAY=10.130.0.4




FH0089:root:/etc/sysconfig/network-scripts# cat ifcfg-eth1

# Broadcom Corporation NetXtreme BCM5715S Gigabit Ethernet

DEVICE=eth1

BOOTPROTO=none

HWADDR=18:A9:05:xx:xx:12

ONBOOT=yes

GATEWAY=10.130.0.4

IPADDR=10.130.0.12

NETMASK=255.255.255.192

TYPE=Ethernet

IPV6INIT=no



FHge0082:root:/etc/sysconfig/network-scripts# cat ifcfg-eth1.240

# Broadcom Corporation NetXtreme BCM5715S Gigabit Ethernet

DEVICE=eth1.240

BOOTPROTO=none

HWADDR=18:A9:xx:xx:49:12

ONBOOT=yes

GATEWAY=10.224.248.1

IPADDR=10.224.248.103

NETMASK=255.255.255.0

TYPE=Ethernet

IPV6INIT=no

VLAN=yes


FH0089:root:/etc/sysconfig/network-scripts# cat route-eth1.240

ADDRESS0=10.53.129.0

GATEWAY0=10.224.248.1

NETMASK0=255.255.255.240

ADDRESS1=10.53.129.192

GATEWAY1=10.224.248.1

NETMASK1=255.255.255.240



FH0089:root:/etc/sysconfig/network-scripts# route -n

Kernel IP routing table

Destination Gateway Genmask Flags Metric Ref Use Iface

10.53.129.192 10.224.248.1 255.255.255.240 UG 0 0 0 eth1.240

10.53.129.0 10.224.248.1 255.255.255.240 UG 0 0 0 eth1.240

10.130.0.0 0.0.0.0 255.255.255.192 U 0 0 0 eth1

10.129.15.0 0.0.0.0 255.255.255.128 U 0 0
0 eth0.1020

10.224.248.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1.240

10.129.0.0 10.129.15.3 255.255.0.0 UG 0 0
0 eth0.1020

0.0.0.0 10.130.0.4 0.0.0.0 UG 0 0 0 eth1




last line you see above is the one which is not included in route
tables by default, even if GATEWAY is configured in
/etc/sysconfig/network

we looked for a file which could affect including a route by default
but we didnt find it.


i rebooted the server, and i´ve been thinking about using this command

/sbin/ip route flush table all

but i think if i already rebooted after erase all eth1.240 (route too)
files it would be useless

i would like anybody help me cause i´m in a hurry
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
 

Thread Tools




All times are GMT. The time now is 12:50 PM.

VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org