T
T
theftp2015-05-24 22:13:54
Red Hat Enterprise Linux
theftp, 2015-05-24 22:13:54

How to configure vlan on Redhat without configuring IP on base interface?

OS Redhat 6.6.
From the Redhat manual https://access.redhat.com/documentation/en-US/Red_... it follows that the base (parent) interface can be without an address, having only the DEVICE, TYPE, BOOTPROTO, ONBOOT fields in its config, and network settings with IP address, mask and gateway can be set directly on the vlan interface.
But it doesn't work for me. The gateway address is not pinged with a "Host unreachable" error. The vlan address is also unavailable from other computers.
What am I doing wrong?
#ifcfg-eth0
DEVICE=eth0
TYPE=Ethernet
ONBOOT=yes
BOOTPROTO=none
NAME="System eth0"
#ifcfg-eth0.15
DEVICE=eth0.15
VLAN=yes
TYPE=Ethernet
ONBOOT=yes
BOOTPROTO=none
NAME="System eth0.15"
IPADDR=192.168.214.224
PREFIX=25
GATEWAY=192.168.214.129
DEFROUTE=yes
If you set an address on the primary interface, both become accessible from the network. But if you look in wireshark, icmp packets (ping) do not go through eth0.15, but through eth0. This is fine? And the packets do not have a vlan block between the ethernet and ip blocks.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question