易截截图软件、单文件、免安装、纯绿色、仅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某些软件无法卸载问题

前几天更新ubuntu的时候,突然失败,仔细一看,是卸载老版本的gzip时候出了问题。错误信息:
install-info: No dir file specified; try --help for more information.
试了多个常用的手动卸载方法都没法搞定,于是求助google,很快找到答案。是GNU版的install-info代替了debian版的install-info造成的问题,覆盖回来就OK ......

Linux常用配置文件


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

Linux下Oracle重启和修改连接数

一、启动
 
1.#su - oracle              切换到oracle用户且切换到它的环境
2.$lsnrctl status           查看监听及数据库状态
3.$lsnrctl start      &nb ......

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 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号