易截截图软件、单文件、免安装、纯绿色、仅160KB

linux network commands

1,ifconfig命令
ifconfig可设置网络设备的状态,或是显示目前的设置。
#ifconfig [网络设备] [down|up|-allmulti|-arp|-promisc] [add<地址>] [del<地址>] [<网络设备类型> <硬件地址>] [io_addr] [irq ] [media<网络媒介类型>] [mem_start<内存地址>]
[metric<数目>] [mtu<字节>] [netmask<子网掩码>] [tunnel<地址>] [-broadcast<地址>] [- pointopoint<地址>] [IP地址]
add<地址> 设置网络设备IPv6的IP地址。
del<地址> 删除网络设备IPv6的IP地址。
down 关闭指定的网络设备。
<网络设备类型><硬件地址> 设置网络设备的类型与硬件地址
#ifconfig eth0 hw ether XX:XX:XX:XX:XX:XX(更改eth0的mac地址)
io_addr 设置网络设备的I/O地址。
irq 设置网络设备的IRQ。
media<网络媒介类型> 设置网络设备的媒介类型。
mem_start<内存地址> 设置网络设备在主内存所占用的起始地址。
metric<数目> 指定在计算数据包的转送次数时,所要加上的数目。
mtu<字节> 设置网络设备的MTU。
netmask<子网掩码> 设置网络设备的子网掩码。
tunnel<地址> 建立IPv4与IPv6之间的隧道通信地址。
up 启动指定的网络设备。
-broadcast<地址> 将要送往指定地址的数据包当成广播数据包来处理。
-pointopoint<地址> 与指定地址的网络设备建立直接连线,此模式具有保密功能。
-promisc 关闭或启动指定网络设备的混杂(promiscuous)模式。
[IP地址] 指定网络设备的IP地址。
[网络设备] 指定网络设备的名称。
使用ifconfig和route命令更改IP设置:
#ifconfig eth0 down (关闭eth0)
#ifconfig eth0 hw ether XX:XX:XX:XX:XX:XX(临时更改eth0的mac地址,即时生效)
#ifconfig eth0 192.168.161.9 netmask 255.255.252.0 up (临时设置IP地址,子网掩码,即时生效)
#route add default gw 192.168.162.1 (临时设置网关,即时生效)
#vi /etc/sysconfig/network-scripts/ifcfg-eth0 (编辑配置文件,永久更改IP设置,重启生效)
#vi /etc/resolv.conf (编辑配置文件,设置DNS)
#ifconfig eth0 promisc (将eth0设置为混杂模式)
#ifconfig eth0 -promisc (取消混杂模式)
#ifconfig eth0 arp (打开eth0的arp解析)
#ifconfig eth0 -arp (关闭arp解析)
#ifconfig eth0:1 192.168.1.1 netmask 255.255.255.0


相关文档:

Linux系统信息查看命令大全


最近看了一些Linux命令行的文章,在系统信息查看方面学到不少命令。 想起以前写过的一篇其实Linux这样用更简单

发现这些系统信息查看命令也可以总结出一篇小小的东西来了。
另外这里
还有非常多的命令, 可以作为参考。
系统
# uname -a # 查看内核/操作系统/CPU信息
# head -n 1 /etc/issue ......

Linux常用配置文件


配置文件一览表 文件位置及名称,作用
  /etc/rc.d/rc.sysinit
  系统启动时的公用服务配置
  /etc/rc.d/rc.local
  系统启动时的本地服务配置
  /etc/bashrc、/etc/profile
  bash shell的公用配置
  /home/username/.bashrc
  各用户私人bash shell配置
  /etc/securetty
  终端安全设置 ......

Oracle 10g RAC On Linux Using NFS

http://inthirties.com:90/thread-918-3-1.html
This article describes the installation of
Oracle 10g release 2 (10.2.0.1) RAC on Linux (Oracle Enterprise Linux
4.5) using NFS to provide the shared storage.
Introduction
Download Software
Operating System Installation
Oracle Installation Prereq ......

转载 写得蛮好的linux学习笔记

linux目录架构
/   根目录
/bin    常用的命令 binary file 的目錄
/boot   存放系统启动时必须读取的档案,包括核心 (kernel) 在内
     /boot/grub/menu.lst   GRUB设置
     /boot/vmlinuz   内核
   ......

ARM Linux Boot Sequence

contact me go -> xuqiang.docs@hotmail.com
ARM Linux Boot Sequence
The following traces the Linux boot sequence for ARM-based systems in the 2.6.18 kernel. It looks at just the earliest stages of the boot process, until the generic non-processor-specific start_kernel function is called. The line ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号