alias ip make eth lose its default gw

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxxxxxxx
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


[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux