鱼C论坛

 找回密码
 立即注册
查看: 3152|回复: 1

[学习笔记] Linux一些基础网络配置命令

[复制链接]
发表于 2017-6-20 19:32:52 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能^_^

您需要 登录 才可以下载或查看,没有账号?立即注册

x
1.ifconfig
2.ifconfig eth0 192.168.0.100
3.ifconfig eth0 netmask 255.255.255.0
4.ifconfig eth0 broadcast 192.168.0.255
5.ifconfig eth0 mtu 1500
6.ifconfig eth0 up
7.ifconfig eth0 down
8.ifconfig eth0:0 192.168.0.101
9.ifup
10.ifdown

11.route
12.route -n
13.route add -net 192.168.0.100 netmask 255.255.255.0 dev eth0
14.route del -net 192.168.0.100 netmask 255.255.255.0 dev eth0
15.route add default gw 192.168.0.1

16.ip link show
17.ip -s link show
18.ip link set eth0 up
19.ip link set eth0 down
20.ip link set eth0 netmask 255.255.255.0
21.ip link set eth0 mtu 1500
22.ip link set eth0 broadcast 192.168.0.255
23.ip link set eth0 address 9c:b7:0d:cf:1b:98

24.ip route show
25.ip -s route show

26.ip addr show
27.ip -s addr show

28.ping 192.168.0.100
29.ping 192.168.0.100 -c 5

30.host www.baidu.com

31.traceroute www.baidu.com
32.traceroute www.baidu.com -n

33.netstat -anp
34.netstat -l

35.dhclient

36.tcpdump -i eth0 -nn port 21
37.tcpdump -i eth0 -nn -X port 21

38.service network restart
39./etc/init.d/network

评分

参与人数 1鱼币 +1 收起 理由
小甲鱼 + 1

查看全部评分

想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

 楼主| 发表于 2017-6-21 01:14:01 | 显示全部楼层
up up
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)

GMT+8, 2024-4-20 21:53

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表