Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
i'd like to change my IP address. is there a way to do this w/o contacting ISP?
the purpose is to revisit sites that only allow so many downloads or visits.
Reset (or unplug) your router or modem (by that I mean, dis/reconnect the power, not the network-cable).
But it will probably get the same IP assigned than it had before and will therefore not help.
Next alternative: just wait for that timeout or pay for the service - I know it happens on the freely accessible versions of rapidshare services for instance - and the restriction will be gone if you subscribe and pay...
Reset (or unplug) your router or modem (by that I mean, dis/reconnect the power, not the network-cable).
But it will probably get the same IP assigned than it had before and will therefore not help.
This should work. The ISP recycles your address when you disconnect, so it just needs someone-else to switch on their computer between your switching off and switching on again. In other, words go and make a cup of tea!
This should work. The ISP recycles your address when you disconnect, so it just needs someone-else to switch on their computer between your switching off and switching on again. In other, words go and make a cup of tea!
This is not necessarily true. I always get the same IP and I don't have static addressing. The IP changes every time I spoof my MAC address, but I always get one IP for one MAC address.
Try dhcpcd -s <enter a new ip> <interface>
Obviously the new IP you desire shouldn't be in use. This entire argument holds only if you aren't using static addressing.
When ISPs setup dynamic addresses, they typically give them very long timeouts for DSL users. Actually disconnecting the power and taking a break may encourage someone else to pick it up. Try it at the local 'net rush-hour' time.
Resetting the MAC should do it also, for obvious reasons.
Resetting the MAC should do it also, for obvious reasons.[/QUOTE]
i don't know about disconnecting power to modem.
here is how to do it for an ATT modem/account:
$ sudo apt-get install Macchanger or do it from synaptic
$ sudo apt-get install nmap or do it from synaptic
$ sudo ifconfig in first lines of output you'll find:
eth0 Link encap:Ethernet HWaddr 00:1a:a0:2d:7b:b5
inet addr:192.168.1.64 Bcast:192.168.1.255
$ sudo nmap -sP 192.168.1.0/24 Starting Nmap 4.76 ( http://nmap.org ) at 2009-10-24 09:04 CDT
Host rosco-desktop (192.168.1.64) appears to be up.
Host home (192.168.1.254) appears to be up.
MAC Address: 00:25:3C:BF:E0:69 (Unknown)
Nmap done: 256 IP addresses (2 hosts up) scanned in 5.56 seconds
Type “host home” in firefox address bar: 192.168.1.254
this will give the system summary of your att internet connection.
In “Broadband Link” Section
Click “Summary” click “Advanced Settings”
you will see a section on left side, “Hardware Address Override.”
Click Substitute new numbers (0-9) or letters (a-f) in last six digits.
make sure you see that i used my IP address & hardware address above. you'll need to get yours in the terminal output. good luck for those who try. i got my help from my LUG
Last edited by roscogruen; 10-25-2009 at 05:21 AM.
gregorian
that was the mistake I made with my answer and why I deleted it
It is not this MAC which needs to be changed - the MAC of the router, of the outside interface facing the provider, is...
The description is a complicated way to show how to find out the IP of, and log into, the router and change the MAC of the interface facing the provider.
Why does the MAC of the router need to change? I'm not sure I understand. The websites that block a computer after a certain number of attempts do so by recording the IP. If changing your own MAC gives you a new IP, doesn't that solve the problem? It works for me; also I cannot change the MAC of my college's wireless access point.
Because the routers MAC is what is seen from the outside by your provider - not that of a client 3 interfaces down the chain.
I suppose we are talking about a home user, a DSL (or similar) provider and one or more computers behind the NAT, that the router uses to share the one single IP the provider gives to the user.
From the outside, all computers connected to the routers internal LAN are seen as one computer from the WAN side.
The IP the router is given (may) depend(s) on the MAC of it's WAN interface - or it may not.
If it does not, cutting the power/resetting will get you a new IP from the provider.
If it does, you get the same as before - and changing MAC could "force" another.
I can't think of a way to make it dependent on the MAC of a client that is on a different interface.
means: I can't imagine how this could work for you - if you and your college are on the same LAN which is NAT-ed through one WAN IP
A MAC is only visible from one interface to the next.
E.g is it bridged? or is it PPOE or PPOA?
(dsl speaking)
Furthermore, the Poster didn't say, it has dynamic IP leases at all.
Most DSL providers (at least here in Europe), use static addressing, because of the clear administration for the customers.
(one customer equals one IP, thus backtracing is easier, for quanty of traffic limits and also for legal actions)
It's done by Cable loopback addressing (DSLAM), a telephone connection (with or without actual telephone signal, is addressed to a specific physical postal address. Thus nomatter what your mac is, you allways get the same IP. (unless you have a ip block addressed, but that's mostly not the case for soho connections)
But then again, the poster didn't say it is using a DSL connection.. maybe it's wireless (village wlan), maybe it's fiber, maybe it's cable.. or maybe it's dailup. we don't know..
To the OP: please specify your connection type and provider (or which package you have).
The IP the router is given (may) depend(s) on the MAC of it's WAN interface - or it may not.
If it does not, cutting the power/resetting will get you a new IP from the provider.
If it does, you get the same as before - and changing MAC could "force" another.
The ISP could care less about the router, the IP address is given to the modem the customer is using, and that all depends on the MAC of the modem. The modem be it cable/dsl can not be changed unless the new MAC is registered with the ISP as a valid customer device. Other wise anyone could run down to the local radioshack buy a modem and jump on any ISP's network and not have to pay a dime for the service.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.