Linux - 网络相关指令】的更多相关文章

系统时间与开关机 查看系统时间 date 查看硬件日期 hwclock 学习Linux不必全部指令都会,只要记住主要常用的几个就可以了.--MK 关机命令 shutdown init reboot poweroff [root@local ~]# shutdown -h +10 Shutdown scheduled for 四 2018-01-04 23:34:56 CST, use 'shutdown -c' to cancel. [root@local ~]# Broadcast messa…
Linux网络相关 ifocnfig 查看网卡ip(yum install net-tools) ip add 查看网卡 ip add = ifocnfig ifconfig 不显示down掉的网卡,只显示正在工作的网卡. ifconfig -a  显示当前正在使用的网卡和down掉的网卡 ifdown enth0  关闭eth0网卡 ifup enth0  启动eth0网卡 当先执行ifdown eth0的时候就断开远程连接了,如果需要重新启动某个网卡,可以两天命令 一起执行 ifdown e…
第7周第3次课(5月9日) 课程内容: 10.11 Linux网络相关10.12 firewalld和netfilter10.13 netfilter5表5链介绍10.14 iptables语法 扩展(selinux了解即可)1. selinux教程 http://os.51cto.com/art/201209/355490.htm2.selinux pdf电子书 http://pan.baidu.com/s/1jGGdExK 10.11 Linux网络相关 [root@jimmylinux-0…
以下漫画形式呈现的常用 Linux 网络相关命令速查表来自 twitter -…
一. Linux网络相关 yum install net-tools ifconfig查看网卡ip ifup ens33开启网卡 ifdown ens33关闭网卡 设定虚拟网卡ens33:0 mii-toll ens33 与ethtool ens33一样查看网卡是否连接 更改主机名hostnamectl sethostname davery DNS配置文件vi /etc/resoly.conf /etc/host文件 临时更改IP vim /cat/hosts    编辑 二.firewalld…
一.修改网卡相关配置 Linux网络参数是在/etc/sysconfig/network-scripts/ifcfg-eth0中设置,其中ifcfg-eth0表示是第一个网卡,如果还有另外一块网卡,则配置为 ifcfg-eth1. 如下例: [root@bigdata-senior01 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 TYPE=Ethernet UUID=1b0ec24e-bfc4-4f17-9864-a…
linux系统一般来说分为两大类:1.RedHat系列:Redhat.Centos.Fedora等:2.Debian系列:Debian.Ubuntu等. linux系统中,TCP/IP网络是通过若干个文本文件来进行配置的,需要配置这些文件来联网,下面对linux两大类系统中基本的TCP/IP网络配置文件做学习总结. 第一类Debian中Ubuntu系统为例 Ubuntu系统的网络配置文件有interfaces,resolv.conf等. 一.网络接口配置文件:/etc/network/inter…
5.1 网络参数设定使用的指令   ifconfig 查询 设定网络卡与 IP 网域等相关参数: ifup, ifdown 这两个档案是 script,透过更简单的方式来启动网络接口: route 查询 设定路由表 (route table) ip 复合式的指令, 可以直接修改上述提到的功能:   ifconfig 用法: [root@www ~]# ifconfig {interface} {up|down} <== 观察与启动接口 [root@www ~]# ifconfig interfa…
1.修改ip,dns相关:sudo vi /etc/sysconfig/network-scripts/ifcfg-eth0 2.ifconfig 查找ip,mac地址 3.重启网络:sudo service network restart 4.列出某个用户打开的文件信息:lsof  -u username 5.通过某个进程号显示该进行打开的文件:lsof -p 1 6.列出谁在使用某个特定的tcp端口:lsof -i tcp:80 7.查看某进程中fd数量: 1) cd /proc/123/f…
A,iptables使用示例 1,将请求80端口的包发送给本机8180端口(这样,别的机器访问本机的80端口时会被转发到8180端口去) iptables -t nat -A PREROUTING -p tcp -d 10.6.2.110 --dport 80 -j DNAT --to-destination 10.6.2.110:8180 iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 8180 用…