环境 Red Hat Enterprise Linux 6 Red Hat Enterprise Linux 7 问题 How to identify if the system is installed with UEFI or with Legacy only Boot? 决议 Run the command below to find out if the system is BIOS boot or UEFI boot. #[ -d /sys/firmware/efi ] && ec…
环境 Red Hat Enterprise Linux 6 Red Hat Enterprise Linux 7 问题 How to identify if the system is installed with UEFI or with Legacy only Boot? 决议 Run the command below to find out if the system is BIOS boot or UEFI boot. #[ -d /sys/firmware/efi ] && ec…
路由策略数据库的规则用于控制选择路由的算法。 Internet上采用的路由算法一般是基于数据包目的地址的。理论上,也可以由TOS域决定,不过这没有实际应用。要了解经典路由算法的详细情况请参考RFC-1812。 而在某些情况下,我们不只是需要通过数据包的目的地址决定路由,可能还需要通过其他一些域:源地址、IP协议、传输层端口甚至数据包的负载。这就叫做:策略路由(policy routing)。 注意:策略路由(policy routing)不等于路由策略(rouing policy)。 在这种情况下,传统的基于目的地…
1、启动firewalld服务并设置开机自动启动,下面的命令必须在防火墙开启的状态下才可用 ,由于firewalld默认不是放行所有端口,所以启动firewalld会造成该机器的某些端口无法访问。具体的网卡端口和转发的源和目的端口请根据实际情况替换。 systemctl enable firewalld systemctl start firewalld 2、更改防火墙默认区域为trusted,默认放行所有连接请求 firewall-cmd --set-default-zone=trusted 3、将8…
1、启动firewalld服务并设置开机自动启动,下面的命令必须在防火墙开启的状态下才可用 ,由于firewalld默认不是放行所有端口,所以启动firewalld会造成该机器的某些端口无法访问。 systemctl enable firewalld systemctl start firewalld 2、更改防火墙默认区域为trusted,默认放行所有连接请求 firewall-cmd --set-default-zone=trusted 3.新建一个zone,将想要访问本机80端口的ip,如:192…
在本机上访问10.10.6.6的20000端口转发到10.8.6.6的20000端口 # firewall-cmd --permanent --direct --add-rule ipv4 nat OUTPUT 0 -p tcp -d 10.10.6.6 --dport 20000 -j DNAT --to 10.8.6.6:20000 success # firewall-cmd --reload success # firewall-cmd --permanent --direct --get-ru…
主要语法 过滤主机/IP: tcpdump -i eth0 host 172.16.7.206 抓取所有经过网卡1,目的IP为172.16.7.206的网络数据 过滤端口: tcpdump -i eth0 dst port 1234 抓取所有经过网卡1,目的端口为1234的网络数据 过滤特定协议: tcpdump -i eth0 udp 抓取所有经过网卡1,协议类型为UDP的网络数据 抓取本地环路数据包 tcpdump -i lo udp 抓取UDP数据 tcpdump -i lo udp port…
安装相应软件包。 yum -y install gnome-classic-session gnome-terminal control-center liberation-mono-fonts
RedHat Enterprise Linux 7关闭防火墙方法 在之前的版本中关闭防火墙等服务的命令是 service iptables stop /etc/init.d/iptables stop 在RHEL7中,其实没有这个服务 [root@rhel7 ~]# cat /etc/redhat-release Red Hat Enterprise Linux Server release 7.0 (Maipo) [root@rhel7 ~]# service iptables stop Redirect…
我们知道,centos 6.x是通过/etc/grub.conf就行内核启动顺序修改的,而且比较直观查看。但centos 7的系统和6就不一样了,是通过grub2为引导程序。下边简单说下centos 7的内核启动顺序如何修改。 1,首先查看当前系统有几个内核。比如: [root@21yunwei ~]# cat /boot/grub2/grub.cfg |grep menuentry if [ x"${feature_menuentry_id}" = xy ]; then menuentry_id_option…
Windows 10 Share File: //10.108.xx.xx/lnxvda-rf/ROBOT [root@rhels73 robot]# mount -t cifs -o username=administrator,password=xxxxxx //10.108.xx.xx/lnxvda-rf/ROBOT /opt/robot mount error(112): Host is down Refer to the mount.cifs(8) manual page (e.g. man mou…