Skip to navigation Skip to main content Utilities
Show
Infrastructure and Management
Cloud Computing
Storage
Runtimes
Integration and Automation
All Products In Red Hat Enterprise Linux 7, the bridging module is loaded by default. If necessary, you can make sure that the module is loaded by issuing the following command as To display information about the module, issue the following command: See the 9.3.2. Create a Network Bridge To create a network bridge, create a file in the The contents of the file is similar to whatever type of interface is getting bridged to, such as an Ethernet interface. The differences in this example are as follows:
Example 9.1. Example ifcfg-br0 Interface Configuration File The following is an example of a bridge interface configuration file using a static DEVICE=br0 TYPE=Bridge IPADDR=192.168.1.1 PREFIX=24 BOOTPROTO=none ONBOOT=yes DELAY=0 To complete the bridge another interface is created, or an existing interface is modified, and pointed to the bridge interface. Example 9.2. Example ifcfg-enp1s0 Interface Configuration File The following is an example of an Ethernet interface configuration file pointing to a bridge interface. Configure your physical interface in DEVICE=device_name TYPE=Ethernet HWADDR=AA:BB:CC:DD:EE:FF BOOTPROTO=none ONBOOT=yes BRIDGE=br0 Optionally specify a name using the NAME directive. If no name is specified, the NetworkManager plug-in, For the The directives are case sensitive. If you are configuring bridging on a remote host, and you are connected to that host over the physical NIC you are configuring, consider the implications of losing connectivity before proceeding. You will lose connectivity when restarting the service and may not be able to regain connectivity if any errors have been made. Console, or out-of-band access is advised. To open the new or
recently configured interfaces, issue a command as
This command will detect if NetworkManager is running and call Alternatively, to reload all interfaces, issue the following command as ~]# This command will stop the network service, start the network service, and then call The
default behavior is for NetworkManager not to be aware of changes to ifcfg files and to continue using the old configuration data until the interface is next brought up. This is set by the 9.3.3. Network Bridge with BondAn example of a network bridge formed from two or more bonded Ethernet interfaces will now be given as this is another common application in a virtualization environment. If you are not very familiar with the configuration files for bonded interfaces, see Section 7.4.2, “Create a Channel Bonding Interface” Create or edit two or more Ethernet interface configuration files, which are to be bonded, as follows: DEVICE=interface_name TYPE=Ethernet SLAVE=yes MASTER=bond0 BOOTPROTO=none HWADDR=AA:BB:CC:DD:EE:FF Using Create or edit one interface configuration file, DEVICE=bond0 ONBOOT=yes BONDING_OPTS='mode=1 miimon=100' BRIDGE=brbond0 For further instructions and advice on configuring the bonding module and to view the list of bonding parameters, see Section 7.7, “Using Channel Bonding”. Create or edit one interface configuration file, DEVICE=brbond0 ONBOOT=yes TYPE=Bridge IPADDR=192.168.1.1 PREFIX=24 We now have two or more interface configuration files with the To open the new or recently configured interfaces, issue a command as
This command will detect if NetworkManager is running and call Alternatively, to reload all interfaces, issue the following command as
~]# This command will stop the network service, start the network service, and then call The default behavior is for NetworkManager not to be aware of changes to ifcfg files and to continue using the old configuration data until the interface is next brought up. This is set by the
Which Linux command shows network interface configurations?The “ifconfig” command is used for displaying current network configuration information, setting up an ip address, netmask, or broadcast address to a network interface, creating an alias for the network interface, setting up hardware address, and enable or disable network interfaces.
What is network interface command in Linux?Linux ifconfig stands for interface configurator. It is one of the most basic commands used in network inspection. ifconfig is used to initialize an interface, configure it with an IP address, and enable or disable it. It is also used to display the route and the network interface.
What is command line utilities in Linux?The Linux command is a utility of the Linux operating system. All basic and advanced tasks can be done by executing commands. The commands are executed on the Linux terminal. The terminal is a command-line interface to interact with the system, which is similar to the command prompt in the Windows OS.
What is the name of the network interface Linux?Linux systems use two different styles of naming the network interfaces. The first style is the old-style name, such as eth0, eth1, and wlan0. The new ones are based on hardware locations like enp3s0 and wlp2s0. Here, we can see three network interfaces, their type, and their state.
|