Select Your Language

Infrastructure and Management

Cloud Computing

Storage

Runtimes

Integration and Automation

  • Comments
  • how to set gateway for VLAN in if-cfg file?

    Posted on

    I'm trying to use https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/s1-networkscripts-interfaces.html to configure VLAN over LACP teaming.

    I've created ifcfg-team0.200 file, with such content:

    DEVICE=team0.200
    BOOTPROTO=none
    ONBOOT=yes
    IPADDR=***
    NETMASK=255.255.255.0
    VLAN=yes
    DNS=***
    PEERDNS=yes

    But there are no GATEWAY parameter,
    So, to make it work, I've also modified /etc/sysconfig/network file and included GATEWAY=... there.

    But I have several VLANs and each of them has own GATEWAY.
    How can I set GATEWAY to VLAN, not globally?

    by

    points

    Responses

    Red Hat LinkedIn YouTube Facebook X, formerly Twitter

    Quick Links

    Help

    Site Info

    Related Sites

    © 2026 Red Hat