Leaving an Interface Unconfigured
James McDonald
james
Wed Aug 23 23:56:59 PDT 2006
> I have a CentOS 4.3 box which I am setting up as an openvpn gateway
>
> I would like to use a bridged configuration between the vpn interface tap0
> and the internal network nic eth1
>
> This is achieved by creating a bridge interface br0 then adding eth1 and
> tap0 to it and configuring the br0 int to have the internal nic's IP and
> then setting both tap0 and eth1 to have no ip address using ifconfig
>
> How do I stop eth1 from being configured on boot I would like a seperate
> service named "bridge" to build the br0 int without having to worry about
> Redhat config scripts playing with my setup.
>
Answering my own question in /etc/sysconfig/network-scripts/ifcfg-eth1
set ONBOOT=no and IPADDR=0.0.0.0 so it never gets an IP
# Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+
DEVICE=eth1
ONBOOT=no
BOOTPROTO=none
IPADDR=0.0.0.0
NETMASK=255.255.255.0
GATEWAY=192.168.1.254
HWADDR=00:0A:EB:98:88:1A
TYPE=Ethernet
More information about the Linux-users
mailing list