PLANET ENW-9701 User Manual
Page 19
2. Set by doing configurations in
/etc/sysconfig/network-scripts/ifcfg-ethX for Redhat and Fedora
/etc/sysconfig/network/ifcfg-ethX for SuSE.
There are two examples to set network configurations.
a. Fixed IP address:
DEVICE=eth0
BOOTPROTO=static
ONBOOT=yes
TYPE=ethernet
NETMASK=255.255.255.0
IPADDR=192.168.1.1
GATEWAY=192.168.1.254
BROADCAST=192.168.1.255
b.
DHCP:
DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes
Modify the MAC address:
There are two ways to modify the MAC address of the NIC.
1. Use ifconfig:
# ifconfig ethX hw ether YY:YY:YY:YY:YY:YY
,where X is the device number assigned by Linux kernel, and
YY:YY:YY:YY:YY:YY is the MAC address assigned by the user.
2. Use ip:
# ip link set ethX address YY:YY:YY:YY:YY:YY
,where X is the device number assigned by Linux kernel, and
YY:YY:YY:YY:YY:YY is the MAC address assigned by the user.
Jumbo Frame:
Transmitting Jumbo Frames, whose packet size is bigger than 1500 bytes, please
change mtu by the following command.
# ifconfig ethX mtu MTU
, where X=0,1,2,..., and MTU is configured by user.
5