MAC adresas

V
  • 5 Kov '08

nera dar laimingos pabaigos, nebuvo laiko tuo uzsiimti ir visai ne suprantu kaip ta padaryti.
Noreciau paprasyti labai smulkiai ka ir kur reikia daryti.
Is anksto dekingas.

R
  • 6 Kov '08

eilute kuria reikia irasyti terminale parasyta paryskintai, gale spaudziame [color=ff0000]<ENTER>[/color] klavisa
[color=0000ff]melyname fone[/color] tekstas kuri su tekstiniu redaktoriumi ikeliame i faila. visa kita paaiskinimai.
terminala atsidarome spausdami klavisus [color=ff0000]<ALT>+<F2>[/color] irasome [color=ff0000]gnome-terminal[/color] ir spaudziame [color=ff0000]<ENTER>[/color]

sudo gedit /etc/ip_mac
atsidarys grafinis editorius sukurdamas nauja faila.
tenai papeistiname:

[color=0000ff]

!/bin/sh -e

/sbin/ifconfig eth0 down
/sbin/ifconfig eth0 hw ether 00:11:09:C9:C2:36
/sbin/ifconfig eth0 up
/sbin/dhclient eth0
[/color]

issaugome ir padarom scripta/faila paleidziamuoju

sudo chmod +x /etc/ip_mac

toliau nustatome crontab kad pc uzsikrovimo metu butu paleidziamas musu scriptas

export EDITOR=gedit
sudo crontab -e

atsidarys grafinis editorius kuriame paskutineje eiluteje parasome sekanti teksta:

[color=0000ff]
@reboot /etc/ip_mac
[/color]

issaugai faila ir perkrauni pc

V
  • 6 Kov '08

na fantastiska ubuntu bendruomene, aciu asmeniskai rdx uz informacija.
Turedamas laiko bandysiu padaryti scripta.

A
  • 30 Kov '09

Sveiki, as taipogi susiduriau su problemele MACui pakeisti.
Pats naudoju eebuntu. Padariau visa tai ka kolega
"rdx"minejo auksciau, bet deja man tai nepadejo. Gal man tai netinka? Linuxa vartau neperseniausiai, taip kad dar esu visiskai zalias. Laukiu jusu atsakymu. Pagarbiai Audrius

R
  • 2 Bal '09

gal man ka patartumet kaip susitvarkt mac adresa
pas mane rodo kad nėra jokio mac adreso

ro@ro-laptop:~$ dmesg | tail
[ 58.805019] eth5: no IPv6 routers present
[ 64.844035] eth113: no IPv6 routers present
[ 104.488070] CPU0 attaching NULL sched-domain.
[ 104.488094] CPU1 attaching NULL sched-domain.
[ 104.496476] CPU0 attaching sched-domain:
[ 104.496489] domain 0: span 0-1 level CPU
[ 104.496497] groups: 0 1
[ 104.496513] CPU1 attaching sched-domain:
[ 104.496519] domain 0: span 0-1 level CPU
[ 104.496525] groups: 1 0
ro@ro-laptop:~$

H
  • 3 Bal '09

ip a
ten kur bus link/ether aa:bb:cc:dd:ee:ff ir bus tavo mac adresas
Klausimas: kur tavo poste rodo kad nera mac adreso? Kazka maisai.

H
  • 3 Bal '09

audriux
Ziurint kas tau nepadejo, neisejo isvis mac adreso pakeisti, ar neisiena kad perkrovus pc jis automatiskai pasikeistu, jei esi "zalias" tai gal ne taip komandas suvedineji pvz jei pradiniame variante buvo kalbama apie eth0 irengini tai gal jis pas tave vadinasi kitaip. savo tinklo irenginius paziureti irgi komanda
ip a
arba sudo ifconfig

R
  • 3 Bal '09

va kaip yra:
Inerneto protokolas (IPv4)
Adresas: 127.0.0.0
Subnet kaukė: 255.0......
Tinklo įrenginys
Tipas: Vietinis.....
Adresas: 00:00:00:00:00:00

R
  • 3 Bal '09

Viskas prasidejo kai turejau VIsta pasigavo ji kažkoki virusa ir antivirusinė trindama prie to paties ištrinė ir MAC adresa. Kai perinstaliavau Vista internetas nesijungdavo kol nesuvesdavau MAC adreso rankiniu budu. SU Ubuntu kitas reikalas nereikia nieko suvedinėt kažkaip savaime užsikraunant kompiuteriui generuojamas MAC adresa bet vis kitoks, pas mane yra routeris todel koks MAC bebutu internetas pasijungia. Tai va noriu isiaiskinti kaip irasyt pastovu mac adresa.Jei kas galit padet ar minciu turit. atčiu.

R
  • 3 Bal '09

ro@ro-laptop:~$ sudo ifconfig
[sudo] password for ro:
\eth5 Link encap:Ethernet HWaddr 00:1a:73:c8:55:a8
inet6 addr: fe80::21a:73ff:fec8:55a8/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:1
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:16

eth124 Link encap:Ethernet HWaddr 00:00:6c:4d:80:de
inet addr:192.168.0.103 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::200:6cff:fe4d:80de/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:50416 errors:0 dropped:0 overruns:0 frame:0
TX packets:45381 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:63467119 (63.4 MB) TX bytes:3301710 (3.3 MB)
Interrupt:20 Base address:0xa000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:40 errors:0 dropped:0 overruns:0 frame:0
TX packets:40 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3052 (3.0 KB) TX bytes:3052 (3.0 KB)

Tai mac rodo bet beda tokia kad jeigu netureciai ruoterio neprisijungčiau prie interneto nes tena MAC juk pastovus.

H
  • 3 Bal '09

na nesinori kartotis, cia yra 2 budai aprasyti kaip ji islaikyti pastovu, vienas per /etc/network/intefaces faila kitas per scripta, o vistoje galima per regedit irasyti pastovu mac adresa.

R
  • 3 Bal '09

bandžiau čia aprašytus būdu bet perkrovus vėl taspats, pabandisiu dar karta

H
  • 3 Bal '09

parodyk savo
/etc/udev/rules.d/70-persistent-net.rules

H
  • 3 Bal '09

tai yra man rodos pas tave problema, kad kiekvienakart perkrovus pc pas tave ubuntu pakeicia tinklo kortos identifikatoriu is ethX i eth(X+1) ir todel pagal anksciau aprasytus budus su pastoviu ethX (eth0 tarkim) tau neleidzia pakeisti mac?

R
  • 3 Bal '09

kažkas panašaus o kaip parodit ta "/etc/udev/rules.d/70-persistent-net.rules" nes sitos komandos nežinau

H
  • 3 Bal '09

cat /etc/udev/rules.d/70-persistent-net.rules
ten tiesiog failas tekstinis

H
  • 3 Bal '09

dar prie to pacio
lshw -C network

R
  • 4 Bal '09

Čia šita komanda: "cat /etc/udev/rules.d/70-persistent-net.rules"

PCI device 0x14e4:0x4312 (b43-pci-bridge)

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?", ATTR{address}=="00:1a:73:c8:55:a8", ATTR{type}=="1", KERNEL=="wlan", NAME="wlan0"

PCI device 0x10de:0x0450 (forcedeth)

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?", ATTR{address}=="00:00:6c:2b:c2:bf", ATTR{type}=="1", KERNEL=="eth", NAME="eth1"

PCI device 0x10de:0x0450 (forcedeth)

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?", ATTR{address}=="00:00:6c:33:64:78", ATTR{type}=="1", KERNEL=="eth", NAME="eth2"

PCI device 0x10de:0x0450 (forcedeth)

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?", ATTR{address}=="00:00:6c:97:63:6a", ATTR{type}=="1", KERNEL=="eth", NAME="eth3"

PCI device 0x10de:0x0450 (forcedeth)

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?", ATTR{address}=="00:00:6c:92:13:6a", ATTR{type}=="1", KERNEL=="eth", NAME="eth4"

PCI device 0x14e4:0x4312 (wl)

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?", ATTR{address}=="00:1a:73:c8:55:a8", ATTR{type}=="1", KERNEL=="eth", NAME="eth5"

PCI device 0x10de:0x0450 (forcedeth)

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?", ATTR{address}=="00:00:6c:41:76:bd", ATTR{type}=="1", KERNEL=="eth", NAME="eth6"

PCI device 0x10de:0x0450 (forcedeth)

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?", ATTR{address}=="00:00:6c:7d:75:c5", ATTR{type}=="1", KERNEL=="eth", NAME="eth7"

PCI device 0x10de:0x0450 (forcedeth)

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?", ATTR{address}=="00:00:6c:e7:04:71", ATTR{type}=="1", KERNEL=="eth", NAME="eth8"

PCI device 0x10de:0x0450 (forcedeth)

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?", ATTR{address}=="00:00:6c:71:08:66", ATTR{type}=="1", KERNEL=="eth", NAME="eth9"

PCI device 0x10de:0x0450 (forcedeth)

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?", ATTR{address}=="00:00:6c:c8:b6:40", ATTR{type}=="1", KERNEL=="eth", NAME="eth10"

PCI device 0x10de:0x0450 (forcedeth)

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?", ATTR{address}=="00:00:6c:54:7a:57", ATTR{type}=="1", KERNEL=="eth", NAME="eth11"

PCI device 0x10de:0x0450 (forcedeth)

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?", ATTR{address}=="00:00:6c:b2:69:23", ATTR{type}=="1", KERNEL=="eth", NAME="eth12"

PCI device 0x10de:0x0450 (forcedeth)

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?", ATTR{address}=="00:00:6c:63:c7:59", ATTR{type}=="1", KERNEL=="eth", NAME="eth13"

PCI device 0x10de:0x0450 (forcedeth)

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?", ATTR{address}=="00:00:6c:5b:13:7f", ATTR{type}=="1", KERNEL=="eth", NAME="eth14"

PCI device 0x10de:0x0450 (forcedeth)

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?", ATTR{address}=="00:00:6c:72:66:f2", ATTR{type}=="1", KERNEL=="eth", NAME="eth15"

PCI device 0x10de:0x0450 (forcedeth)

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?", ATTR{address}=="00:00:6c:e5:20:34", ATTR{type}=="1", KERNEL=="eth", NAME="eth16"

PCI device 0x10de:0x0450 (forcedeth)

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?", ATTR{address}=="00:00:6c:e6:b0:22", ATTR{type}=="1", KERNEL=="eth", NAME="eth17"

PCI device 0x10de:0x0450 (forcedeth)

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?", ATTR{address}=="00:00:6c:a2:4d:2a", ATTR{type}=="1", KERNEL=="eth", NAME="eth18"

PCI device 0x10de:0x0450 (forcedeth)

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?", ATTR{address}=="00:00:6c:08:55:1d", ATTR{type}=="1", KERNEL=="eth", NAME="eth19"

PCI device 0x10de:0x0450 (forcedeth)

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?", ATTR{address}=="00:00:6c:6b:62:86", ATTR{type}=="1", KERNEL=="eth", NAME="eth20"

PCI device 0x10de:0x0450 (forcedeth)

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?", ATTR{address}=="00:00:6c:66:f0:c7", ATTR{type}=="1", KERNEL=="eth", NAME="eth21"

PCI device 0x10de:0x0450 (forcedeth)

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?", ATTR{address}=="00:00:6c:62:ea:a5", ATTR{type}=="1", KERNEL=="eth", NAME="eth22"

PCI device 0x10de:0x0450 (forcedeth)

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?", ATTR{address}=="00:00:6c:25:29:9f", ATTR{type}=="1", KERNEL=="eth", NAME="eth23"

PCI device 0x10de:0x0450 (forcedeth)

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?", ATTR{address}=="00:00:6c:20:8c:94", ATTR{type}=="1", KERNEL=="eth", NAME="eth24"

PCI device 0x10de:0x0450 (forcedeth)

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?", ATTR{address}=="00:00:6c:ff:a3:04", ATTR{type}=="1", KERNEL=="eth", NAME="eth25"

PCI device 0x10de:0x0450 (forcedeth)

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?", ATTR{address}=="00:00:6c:a3:bc:bf", ATTR{type}=="1", KERNEL=="eth", NAME="eth26"

PCI device 0x10de:0x0450 (forcedeth)

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?", ATTR{address}=="00:00:6c:36:78:a5", ATTR{type}=="1", KERNEL=="eth", NAME="eth27"

PCI device 0x10de:0x0450 (forcedeth)

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?", ATTR{address}=="00:00:6c:86:ed:14", ATTR{type}=="1", KERNEL=="eth", NAME="eth28"

PCI device 0x10de:0x0450 (forcedeth)

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?", ATTR{address}=="00:00:6c:59:54:b3", ATTR{type}=="1", KERNEL=="eth", NAME="eth29"

PCI device 0x10de:0x0450 (forcedeth)

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?", ATTR{address}=="00:00:6c:bd:b9:29", ATTR{type}=="1", KERNEL=="eth", NAME="eth30"

PCI device 0x10de:0x0450 (forcedeth)

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?", ATTR{address}=="00:00:6c:f8:58:0b", ATTR{type}=="1", KERNEL=="eth", NAME="eth31"

PCI device 0x10de:0x0450 (forcedeth)

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?", ATTR{address}=="00:00:6c:1e:c4:55", ATTR{type}=="1", KERNEL=="eth", NAME="eth32"

PCI device 0x10de:0x0450 (forcedeth)

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?", ATTR{address}=="00:00:6c:9b:e5:e1", ATTR{type}=="1", KERNEL=="eth", NAME="eth33"

PCI device 0x10de:0x0450 (forcedeth)

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?", ATTR{address}=="00:00:6c:6d:a3:48", ATTR{type}=="1", KERNEL=="eth", NAME="eth34"

PCI device 0x10de:0x0450 (forcedeth)

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?", ATTR{address}=="00:00:6c:ba:e0:a8", ATTR{type}=="1", KERNEL=="eth", NAME="eth35"
Čia kita: lshw -C network

ro@ro-laptop:~$ lshw -C network
WARNING: you should run this program as super-user.
-network
description: Ethernet interface
product: MCP65 Ethernet
vendor: nVidia Corporation
physical id: 6
bus info: pci@0000:00:06.0
logical name: eth127
version: a3
serial: 00:00:6e:b9:7b:25
width: 32 bits
clock: 66MHz
capabilities: bus_master cap_list ethernet physical
configuration: broadcast=yes driver=forcedeth driverversion=0.61 ip=192.168.0.103 latency=0 maxlatency=20 mingnt=1 module=forcedeth multicast=yes
-network
description: Wireless interface
product: BCM4312 802.11a/b/g
vendor: Broadcom Corporation
physical id: 0
bus info: pci@0000:03:00.0
logical name: eth5
version: 02
serial: 00:1a:73:c8:55:20
width: 64 bits
clock: 33MHz
capabilities: bus_master cap_list ethernet physical wireless
configuration: broadcast=yes driver=wl0 driverversion=5.10.27.12 latency=0 module=wl multicast=yes wireless=IEEE 802.11
*-network DISABLED
description: Ethernet interface
physical id: 1
logical name: pan0
serial: 2a:26:be:f4:33:29
capabilities: ethernet physical
configuration: broadcast=yes driver=bridge driverversion=2.3 firmware=N/A multicast=yes
ro@ro-laptop:~$

H
  • 4 Bal '09

sudo gedit /etc/udev/rules.d/70-persistent-net.rules
paliekam eilutes pirmasias kur gale wlan nepakeistas, visa kita istrinam ir darasom:

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="forcedeth", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

(istryniau mac atributa mac adresa ir pervadinau i logini irengini eth0) tai yra turetu failas atrodyti mazdaug taip:

PCI device 0x14e4:0x4312 (b43-pci-bridge)

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?", ATTR{address}=="00:1a:73:c8:55:a8", ATTR{type}=="1", KERNEL=="wlan", NAME="wlan0"

PCI device 0x10de:0x0450 (forcedeth)

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="forcedeth", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

issaugom, perkraunam pc, paziurim ar plokste islaike logini eth0 ir tada pakartojom zingsnius kaip padaryti statini mac adresa

R
  • 4 Bal '09

padariau kaip parsyta, bet nieko gero dbar visai internetas nebesijungia net per routeri. Dabar turbut perrasyt ubuntu turbut reikes?