首页
学习
活动
专区
工具
TVP
发布

ifconfig详解_linux不能ifconfig

功能:ifconfig命令被用于配置和显示Linux内核中网络接口的网络参数。用ifconfig命令配置的网卡信息,在网卡重启后机器重启后,配置就不存在。...ifconfig lo 127.0.01 就是系统本身的IP。可在没联网情况用于网络测试 第一行:连接类型:Ethernet(以太网)HWaddr(硬件mac地址)。...启动关闭指定网卡: ifconfig eth0 up ifconfig eth0 down ifconfig eth0 up为启动网卡eth0,ifconfig eth0 down为关闭网卡eth0。...ssh登陆linux服务器操作要小心,关闭了就不能开启了,除非你有多网卡。...启用和关闭arp协议: ifconfig eth0 arp #开启网卡eth0 的arp协议 ifconfig eth0 -arp #关闭网卡eth0 的arp协议 设置最大传输单元: ifconfig

2.5K10

Linux 命令 | ifconfig

Linux 命令 ifconfig 命令解析 Linuxifconfig 命令可以用来查看、配置或激活网络设备的信息,包括设备的IP地址、子网掩码、广播地址、MAC地址等。...ifconfig 命令可以用来进行网络配置、网络故障排查等。...林一总结几个常用的 ifconfig 命令: 查看网络设备信息: ifconfig # 列出所有网络接口的信息 ifconfig eth0 # 查看指定网卡的信息 启用或禁用网络设备: ifconfig...地址 ifconfig eth0 netmask mask # 更改eth0网卡的子网掩码 Linux 命令 unzip 命令注意事项 读者在使用 ifconfig 命令前需要确保已经安装了相应的驱动程序...在Linux系统中,ifconfig已经被标记为过时的网络工具。新的Linux系统中建议使用ip命令来代替ifconfig

23320
您找到你想要的搜索结果了吗?
是的
没有找到

Linux防火墙-SELinux、netfilter、iptables、ifconfig

10.11 Linux网络相关 ifconfig命令 查看网卡IP 如果系统没有该命令可以使用yum安装: [root@adai003 ~]# yum install -y net-tools 查看网卡...ifconfig -a 显示所有网卡信息(包括down掉的或者没有IP地址的网卡) 启动/关闭网卡 ifup/ifdown [网卡名] 应用环境:更改单个指定网卡配置后需要重启才能生效,为了避免关闭或重启所有网卡可以对单个网卡执行该命令...注: 如果以上操作是在开机状态执行,添加完成后需要重启网络服务!!! 为新增网卡添加配置文件 查看新增网卡的配置信息: 在此可以查看其所在网段。...激活路径:/org/freedesktop/NetworkManager/ActiveConnection/3) 5、查看网卡信息 [root@adai003 network-scripts]# ifconfig...10.14 iptables语法 iptables命令是Linux上常用的防火墙软件,是netfilter项目的一部分。可以直接配置,也可以通过许多前端和图形界面配置。

1.3K23

Linux系统之ifconfig命令的基本使用

一、ifconfig命令介绍1. ifconfig简介ifconfigLinux中常用的网络配置工具之一,用于配置和显示网络接口的具体状况。...要使用ifconfig命令,必须具有superuser权限。在一些较新的Linux发行版中,ifconfig命令已经被ip命令所取代,因此在使用ifconfig命令之前,需要先检查系统是否支持该命令。...ifconfig命令被用于配置和显示Linux内核中网络接口的网络参数。3. ifconfig命令特点ifconfig命令是在UNIX和类UNIX系统中常用的命令,它用于配置网络接口参数。...二、ifconfig命令的使用方法1. 查看ifconfig的帮助信息在centos7.6中,使用ifconfig --help,查看ifconfig帮助信息。...注意ssh连接时,设置后立即生效,单网卡情况会断开连接。此设置是临时生效,重启服务器后,网卡恢复为原来的IP地址。

85181

linux命令讲解大全】135.Linux ifconfig命令详解及用法示例

ifconfig ifconfig 命令用于配置和显示 Linux 内核中网络接口的网络参数。用 ifconfig 命令配置的网卡信息,在网卡重启后机器重启后,配置就不存在。...启动关闭指定网卡: ifconfig eth0 up ifconfig eth0 down ifconfig eth0 up 为启动网卡 eth0,ifconfig eth0 down 为关闭网卡 eth0...SSH 登录 Linux 服务器操作要小心,关闭了就不能开启了,除非你有多个网卡。...为网卡配置和删除 IPv6 地址: ifconfig eth0 add 33ffe:3240:800:1005::2/64 # 为网卡 eth0 配置 IPv6 地址 ifconfig eth0...# 处于激活状态的网络接口 ifconfig -a # 所有配置的网络接口,不论其是否激活 ifconfig eth0 # 显示 eth0 的网卡信息

15010
领券