由 silver810212 在 12-26-2002 14:03 发表:
linux中改网卡mac(物理地址)
linux中改网卡mac(物理地址)的命令是怎样的?
我以前在本论坛里看到过,但现在怎么搜也搜不到了。
生命不息,学习不止!
你帮助我,我也帮助你。
由 Pye 在 12-26-2002 16:47 发表:
ifconfit eth0 hw
1<mac address="">
2
3
4
5
6* * *
7
8
9_由 silver810212 在 12-26-2002 16:59 发表:_
10
11
12
13****
14
15
16
17
18
19好象不行。
20
21[root@silver root]# ifconfit eth1 hw <11:11:11:11:11:11>
22
23bash: syntax error near unexpected token `newline'
24
25[root@silver root]# ifconfig eth1 hw <11:11:11:11:11:11>
26
27bash: syntax error near unexpected token `newline'
28
29[root@silver root]# ifconfit eth1 hw 11:11:11:11:11:11
30
31bash: ifconfit: command not found
32
33[root@silver root]# ifconfig eth1 hw 11:11:11:11:11:11
34
35Usage:
36
37ifconfig [-a] [-i] [-v] [-s] <interface> [[<af>] <address>]
38
39[add <address>[/<prefixlen>]]
40
41[del <address>[/<prefixlen>]]
42
43[[-]broadcast [<address>]] [[-]pointopoint [<address>]]
44
45[netmask <address>] [dstaddr <address>] [tunnel <address>]
46
47[outfill <nn>] [keepalive <nn>]
48
49[hw <hw> <address>] [metric <nn>] [mtu <nn>]
50
51[[-]trailers] [[-]arp] [[-]allmulti]
52
53[multicast] [[-]promisc]
54
55[mem_start <nn>] [io_addr <nn>] [irq <nn>] [media <type>]
56
57[txqueuelen <nn>]
58
59[[-]dynamic]
60
61[up|down] ...
62
63
64
65<hw>=Hardware Type.
66
67List of possible hardware types:
68
69loop (Local Loopback) slip (Serial Line IP) cslip (VJ Serial Line IP)
70
71slip6 (6-bit Serial Line IP) cslip6 (VJ 6-bit Serial Line IP) adaptive (Adaptive Serial Line IP)
72
73strip (Metricom Starmode IP) ash (Ash) ether (Ethernet)
74
75tr (16/4 Mbps Token Ring) tr (16/4 Mbps Token Ring (New)) ax25 (AMPR AX.25)
76
77netrom (AMPR NET/ROM) rose (AMPR ROSE) tunnel (IPIP Tunnel)
78
79ppp (Point-to-Point Protocol) hdlc ((Cisco)-HDLC) lapb (LAPB)
80
81arcnet (ARCnet) dlci (Frame Relay DLCI) frad (Frame Relay Access Device)
82
83sit (IPv6-in-IPv4) fddi (Fiber Distributed Data Interface) hippi (HIPPI)
84
85irda (IrLAP) ec (Econet) x25 (generic X.25)
86
87<af>=Address family. Default: inet
88
89List of possible address families:
90
91unix (UNIX Domain) inet (DARPA Internet) inet6 (IPv6)
92
93ax25 (AMPR AX.25) netrom (AMPR NET/ROM) rose (AMPR ROSE)
94
95ipx (Novell IPX) ddp (Appletalk DDP) ec (Econet)
96
97ash (Ash) x25 (CCITT X.25)
98
99[root@silver root]#
100
101__________________
102
103生命不息,学习不止!
104
105你帮助我,我也帮助你。
106
107
108
109MSN:[email protected]
110
111
112
113
114* * *
115
116
117_由 Glue 在 12-27-2002 18:00 发表:_
118
119
120
121****
122
123
124
125
126
127请勿用于危害他人的用途!!
128
129ifconfig eth1 down
130
131ifconfig eth1 hw ether 01:01:01:01:01:01
132
133/etc/init.d/network restart
134
135__________________
136
137-_-
138
139
140
141
142* * *
143
144
145_由 silver810212 在 12-29-2002 00:49 发表:_
146
147
148
149****
150
151
152
153
154
155是可以改。
156
157但重起之后就恢复成原来的了。
158
159请问楼上的兄弟是不是这样的?
160
161__________________
162
163生命不息,学习不止!
164
165你帮助我,我也帮助你。
166
167
168
169MSN:[email protected]
170
171
172
173
174* * *
175
176
177_由 chinapc 在 12-29-2002 17:05 发表:_
178
179
180
181****
182
183
184
185
186
187把命令加到启动菜</af></hw></nn></type></nn></nn></nn></nn></nn></address></hw></nn></nn></address></address></address></address></address></prefixlen></address></prefixlen></address></address></af></interface></mac>