2 Replies - 1753 Views - Last Post: 21 June 2010 - 04:01 PM

#1 Israel  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 7
  • View blog
  • Posts: 821
  • Joined: 22-November 04

How to Change(Mask) your Ip Address in Linux

Posted 18 July 2007 - 09:52 PM

Description: As you can see below, to change your ip address in Linux requires very little beyond using a few simple entries in the command line. I have omitted some of the information from "ifconfig" for simplicity. As you can see we started with 192.168.2.2 as our ip address under "ifconfig" and it became 192.168.2.6 This really doesn't work well with routers without being assigned this address by the router. However, if you happen be on a network this can be very useful knowledge on how to view other traffic on the network but you must change your mac address as well. How to change(Mask) your ip address in Linux
[email protected][Israel]# ifconfig
ath0      Link encap:Ethernet  HWaddr 00:11:50:71:3F:80
          inet addr:192.168.2.2  Bcast:192.168.2.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2618 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2886 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:2032298 (1.9 MiB)  TX bytes:551709 (538.7 KiB)

[email protected][Israel]# ifconfig ath0 down
[email protected][Israel]# ifconfig ath0 192.168.2.6
[email protected][Israel]# ifconfig ath0 up
[email protected][Israel]# ifconfig
ath0      Link encap:Ethernet  HWaddr 00:11:50:71:3F:80
          inet addr:192.168.2.6  Bcast:192.168.2.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2620 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2890 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:2032406 (1.9 MiB)  TX bytes:551925 (538.9 KiB)




Is This A Good Question/Topic? 0
  • +

Replies To: How to Change(Mask) your Ip Address in Linux

#2 kasper5150  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 0
  • Joined: 14-June 10

Re: How to Change(Mask) your Ip Address in Linux

Posted 14 June 2010 - 08:20 AM

this has nothing to do with masking your ip. all you are doing is releasing your local intranet ip and renewing it with a static subnet ip.
Was This Post Helpful? 0
  • +
  • -

#3 Israel  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 7
  • View blog
  • Posts: 821
  • Joined: 22-November 04

Re: How to Change(Mask) your Ip Address in Linux

Posted 21 June 2010 - 04:01 PM

If you use it to change to a victim ip, or another ip on the subnet, in conjunction with changing your mac address to that of the victim, then you will appear, as the victim's ip and mac and all your traffic will appear to come from them and all their traffic will pass through you. This is what is know as a man-in-the-middle attack. But if you didn't change your ip and mac to someone else on the subnet then, yes you are correct. However, this can be done beyond subnets but this all goes beyond the scope of this. This was just to show how you could change the ip.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1