Is it possible to have a physical interface VLAN'd and the one of those VLAN having an additional virtual IP
What I would like to do is add Virtual IP, 10.10.11.1 to eno2.100.
I can't just add it to eno2 as the layer 3 switch rejects the packets. So can I create an eno2.100:1 = 10.10.11.1
Interface Role Type IP Address
Ethernet
eno1 External Static 1.2.3.4
eno2 LAN DHCP
eno3 LAN DHCP
eno4 LAN Static 192.168.0.1
VLAN
eno2.100 LAN Static 10.10.11.5
eno2.200 LAN Static 10.10.9.130
eno2.250 LAN Static 10.10.9.1
eno3.370 LAN Static 192.168.255.214
What I would like to do is add Virtual IP, 10.10.11.1 to eno2.100.
I can't just add it to eno2 as the layer 3 switch rejects the packets. So can I create an eno2.100:1 = 10.10.11.1
In IP Settings
Share this post:
Responses (1)
-
Accepted Answer
A VLAN ".5" already existed, so let's try an experiment...
On 'danda' - ClearOS 6.x
[root@danda ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0.5:0
DEVICE=eth0.5:0
TYPE="Virtual"
ONBOOT="yes"
USERCTL="no"
BOOTPROTO="static"
NO_ALIASROUTING="yes"
IPADDR="192.168.5.126"
NETMASK="255.255.255.0"
[/code
On 'karien' - ClearOS 7.x
[code]
[root@karien ~]# cat /etc/sysconfig/network-scripts/ifcfg-enp4s6f1.5:0
DEVICE=enp4s6f1.5:0
TYPE="Virtual"
ONBOOT="yes"
USERCTL="no"
BOOTPROTO="static"
NO_ALIASROUTING="yes"
IPADDR="192.168.5.198"
NETMASK="255.255.255.0"
respective /etc/clearos/network.conf files updated with the new interface and
firewalls restarted..
A ping to the other system was successful either way..
[root@danda ~]# ping -c 5 192.168.5.198
PING 192.168.5.198 (192.168.5.198) 56(84) bytes of data.
64 bytes from 192.168.5.198: icmp_seq=1 ttl=64 time=0.174 ms
64 bytes from 192.168.5.198: icmp_seq=2 ttl=64 time=0.194 ms
64 bytes from 192.168.5.198: icmp_seq=3 ttl=64 time=0.137 ms
64 bytes from 192.168.5.198: icmp_seq=4 ttl=64 time=0.152 ms
64 bytes from 192.168.5.198: icmp_seq=5 ttl=64 time=0.160 ms
--- 192.168.5.198 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4007ms
rtt min/avg/max/mdev = 0.137/0.163/0.194/0.022 ms
[root@karien ~]# ping -c 5 192.168.5.126
PING 192.168.5.126 (192.168.5.126) 56(84) bytes of data.
64 bytes from 192.168.5.126: icmp_seq=1 ttl=64 time=0.189 ms
64 bytes from 192.168.5.126: icmp_seq=2 ttl=64 time=0.206 ms
64 bytes from 192.168.5.126: icmp_seq=3 ttl=64 time=0.172 ms
64 bytes from 192.168.5.126: icmp_seq=4 ttl=64 time=0.173 ms
64 bytes from 192.168.5.126: icmp_seq=5 ttl=64 time=0.184 ms
--- 192.168.5.126 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4006ms
rtt min/avg/max/mdev = 0.172/0.184/0.206/0.021 ms
File transfer using scp successful
[root@danda ~]# scp -p dry_run.txt karien:/root/
dry_run.txt 100% 2414KB 2.4MB/s 00:00
So that works between two ClearOS systems... All edits by hand - not sure if webconfig would support this
That's the closest I can get to your request with what exists here...
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »