32
Chapter 3
Then, when you again check your network connections with
ifconfig
,
you should see that your IP address has changed to the new IP address you
just assigned.
Changing Your Network Mask and Broadcast Address
You can also change your network mask (netmask) and broadcast address
with the
ifconfig
command. For instance, if you want to assign that same
eth0
interface with a netmask of 255.255.0.0 and a broadcast address of
192.168.1.255, you would enter the following:
kali >
ifconfig eth0 192.168.181.115 netmask 255.255.0.0 broadcast 192.168.1.255
kali >
Once again, if you’ve done everything correctly, Linux responds with a
new command prompt. Now enter