[问题]Set IP & MAC address to a variable?

sh/bash/dash/ksh/zsh等Shell脚本
回复
electronixtar
帖子: 52
注册时间: 2006-10-23 18:28

[问题]Set IP & MAC address to a variable?

#1

帖子 electronixtar » 2006-12-09 0:16

Help needed. How to set IP address and MAC address to variables in Ubunt 6.10 shell script? All ideas are appreciated, thanks.
xiechy
帖子: 1074
注册时间: 2006-01-18 15:01

#2

帖子 xiechy » 2006-12-14 13:20

You can try these
ifconfig eth0 hw ether 00:00:00:00:00:00
to set the mac address

代码: 全选

man ifconfig
you will get all informations you need.
回复