eth 代表ethernet 以太网的意思
Here's what Ethernet means.
eth0,eth1,eth2……代表网卡一,网卡二,网卡三……
Eth0, Eth1, Eth2... represent net card one, net card two, net card three...
ifconfig配置网卡
ifconfig configuration webcard
配置网卡的IP地址
Configure IP addresses for web cards
ifconfig eth0 192.168.0.1 netmask 255.255.255.0
在eth0上配置上192.168.0.1 的IP地址及24位掩码。若想再在eth0上在配置一个192.168.1.1/24 的IP地址怎么办?用下面的命令
Configure the IP address of 192.168.0.1 on eth0 and the 24-bit mask. What if you want to install an IP address of 192.168.1.1.24 on eth0? Use the following command.
ifconfig eth0:0 192.168.1.1 netmask 255.255.255.0
这时再用ifconifg命令查看,就可以看到两个网卡的信息了,分别为:eth0和eth0:0.若还想再增加IP,那网卡的命名就接着是:eth0:1、eth0:2……想要几个就填几个。ok!
If you use an ifconifg command then you can see information on two webcards: eth0 and eth0:0. If you want to add another IP, then the name of the net card goes after: eth0:1, eth0:2... fill out a few if you want them.
配置网卡的硬件地址
Configure hardware addresses for web cards
ifconfig eth0 hw ether xx:xx:xx:xx:xx:xx就将网卡的硬件地址更改了,此时你就可以骗过局域网内的IP地址邦定了。
If config eth0 hw other xx:xx:xx:xx:xx:xx:xx changes the hardware address of the netcard, then you can fool the IP address in the local area network.
将网卡禁用
Disable Netcard
ifconfig eth0 down
将网卡启用
Enable the netcard
ifconfig eth0 up
ifconfig 命令的功能很强大,还可以设置网卡的MTU,混杂模式等。
Ifconfig commands have a powerful function, they can also set MTU on the net card, mix mode, etc.
注册有任何问题请添加 微信:MVIP619 拉你进入群
打开微信扫一扫
添加客服
进入交流群
发表评论