Difference between revisions of "Centos7-RHEL9"
From neil.tappsville.com
Jump to navigationJump to searchm |
m |
||
Line 17: | Line 17: | ||
==Dummy Interface== | ==Dummy Interface== | ||
− | < | + | <pre> |
$ cat /etc/modules-load.d/dummy.conf | $ cat /etc/modules-load.d/dummy.conf | ||
# Load dummy.ko at boot | # Load dummy.ko at boot | ||
Line 32: | Line 32: | ||
TYPE=Ethernet | TYPE=Ethernet | ||
NM_CONTROLLED=no | NM_CONTROLLED=no | ||
− | </ | + | </pre> |
= Screen = | = Screen = |
Revision as of 02:29, 8 October 2019
Interfaces
vi /etc/sysconfig/network-scripts/ifcfg-eth0
VM interfaces
VMWare interfaces are created in the following order
- ens192
- ens224
- ens256
- ens161
Static Routes
Temporary ip route add 172.16.5.0/24 via 10.0.0.101 dev eth0
/etc/sysconfig/network-scripts/route-eth0
172.16.5.0/24 via 10.0.0.101 dev eth0
Dummy Interface
$ cat /etc/modules-load.d/dummy.conf # Load dummy.ko at boot dummy $ cat /etc/modprobe.d/dummy.conf install dummy /sbin/modprobe --ignore-install dummy; /sbin/ip link set name ethdummy1 dev dummy0 $ cat /etc/sysconfig/network-scripts/ifcfg-ethdummy1 NAME=ethdummy1 DEVICE=ethdummy1 MACADDR=00:22:22:ff:ff:ff IPADDR=10.10.10.1 NETMASK=255.255.255.0 ONBOOT=yes TYPE=Ethernet NM_CONTROLLED=no
Screen
Terminal multiplexer. https://linuxize.com/post/how-to-use-linux-screen/
Start a 'window' screen
or to give the session a name screen -S 'hello_world'
To exit ctrl + a , d)
Show windows/terminals screen -ls
Re-attach screen -r [number or sesssion_name]