Download Networking Guide - Red Hat Customer Portal
Transcript
Net working G uide See the Red Hat Enterprise Linux 7 Security Guide for information on password security. To change Wi-Fi state, issue a command in the following format: ~]$ nmcl i rad i o wi fi [o n | o ff ] Changing a Spe cific Pro pe rt y To check a specific property, for example mtu, issue a command as follows: ~]$ nmcl i co nnecti o n sho w i d ' MyCafe' | g rep mtu 802-11-wireless.mtu: auto To change the property of a setting, issue a command as follows: ~]$ nmcl i co nnecti o n mo d i fy i d ' MyCafe' 80 2-11-wi rel ess. mtu 1350 To verify the change, issue a command as follows: ~]$ nmcl i co nnecti o n sho w i d ' MyCafe' | g rep mtu 802-11-wireless.mtu: 1350 Note that N et wo rkMan ag er refers to parameters such as 80 2-3-ethernet and 80 2-11wi rel ess as the setting, and mtu as a property of the setting. See the nm-setti ng s(5) man page for more information on properties and their settings. 2.3.3. Configuring St at ic Rout es Using nmcli To configure static routes using the n mcli tool, the command line or the interactive editor mode can be used. Examp le 2.3. C o n f ig u rin g St at ic R o u t es U sin g n mcli To configure a static route for an existing Ethernet connection using the command line, enter a command as follows: ~]# nmcl i co nnecti o n mo d i fy eth0 + i pv4 . ro utes "19 2. 16 8. 122. 0 /24 10 . 10 . 10 . 1" This will direct traffic for the 19 2. 16 8. 122. 0 /24 subnet to the gateway at 10 . 10 . 10 . 1 Examp le 2.4 . C o n f ig u rin g St at ic R o u t es U sin g n mcli Ed it o r To configure a static route for an Ethernet connection using the interactive editor, issue commands as follows: ~]$ nmcl i co n ed i t type ethernet co n-name ens3 ===| nmcli interactive connection editor |=== Adding a new '802-3-ethernet' connection 24