ifconfig

configure a network interface

copy
550
155
ifconfig -a List the computers networking settings and ports

details |

copy
185
27
ifconfig eth0 192.168.1.101Changed the ip address to 192.168.1.101 on interface eth0

details |

copy
227
53
ifconfig eth0 192.168.101.115 netmask 255.255.255.0 upBring up eth0 interface with ifconfig, using netmask 255.255.255.0

details |

copy
187
40
ifconfig eth1 netmask 255.255.255.0Change the netmask on eth1 to 255.255.255.0

details |

copy
202
36
ifconfig eth0 down hw ether 00:00:00:00:00:02Change the mac address of eth0 and disconnect the interface, execute ifconfig eth0 up to start the interface

details |

copy
138
20
ifconfig eth0 mtu 1500Set the maximum transfer unit to 1500

details |

copy
191
52
ifconfig eth0 upStart the eth0 interface

details |

copy
188
39
ifconfig eth1 downdisconnect the eth1 interface

details |

copy
224
32
ifconfig eth0List the computers networking settings and ports for eth0

details |

copy
298
76
ifconfig eth0 192.168.1.103 netmask 255.255.255.0 broadcast 192.168.1.255Set the IP address on eth0 to 192.168.1.102, netmask to 255.255.255.0, and broadcast to 192.168.1.255

details |

copy
165
29
ifconfig eth0 broadcast 192.168.1.2Change broadcast address to 192.168.1.2

details |

copy
159
34
ifconfig eth0 promiscEnable the promiscuous mode of the interface. If selected, all packets on the network will be received by the interface. To disable pass -promisc.

details |

copy
198
31
ifconfig eth0 arpTo Enable the use of the ARP protocol on this interface. To disable pass -arp

details |

copy
133
27
ifconfig eth0 172.16.126.128 upBright up eth0 with the ip address 172.16.126.128

details |

copy
18
0
ifconfig eth0:0 down.

source | details |

copy
9
0
ifconfig eth0 -promiscdisable promiscuous mode

2 years, 5 months ago examplenow 1 | details |