Returned 5 Results for "network" Ordered By Relevance
ifconfig is the linux equivilent of ipconfig and will give you your ipaddress and network details :)
to edit it in red hat go into /etc/sysconfig/network-scripts/ifcfg-eth0 (where 0 is the interface u want to change) and append as desired. then from the command line:
service network [start,stop,restart]
In Ubuntu (Debian)
nano /etc/network/interfaces
Contents should be:
iface eth0 inet static
address 192.168.1.55
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
For DHCP it should read
auto eth0
iface eth0 inet dhcp
To restart your network interface and update settings
sudo /etc/init.d/networking restart
Linux Redhat - when the network comes up it will try to execute all of the ifcfg* files in ### etc/sysconfig/network-scripts so create a new file ifcfg-eth01 for arguments sake and add:
### /etc/sysconfig/network-scripts/ifcfg-eth0:1
DEVICE=eth0:1
BOOTPROTO=static
IPADDR=192.168.0.1
NETMASK=255.255.255.0
NETWORK=192.168.0.0
BROADCAST=192.168.0.255
ONBOOT=yes
to add a virtual ip from the command line simply type:
ifconfig eth0:1 192.168.0.1 255.255.255.0
then add:
route add default gw 192.168.0.50 (GATEWAY)
to make make the machine publically visible to through the firewall
reside in ### /etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=myServerBox
GATEWAY=192.168.0.1
reside in /etc/resolv.conf
nameserver 192.168.1.1
nameserver 192.168.1.2
reside here:### etc/sysconfig/iptables
# Firewall configuration written by system-config-securitylevel
# Manual customization of this file is not recommended.
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:RH-Firewall-1-INPUT - [0:0]
-A INPUT -j RH-Firewall-1-INPUT
-A FORWARD -j RH-Firewall-1-INPUT
-A RH-Firewall-1-INPUT -i lo -j ACCEPT
-A RH-Firewall-1-INPUT -p icmp --icmp-type any -j ACCEPT
-A RH-Firewall-1-INPUT -p 50 -j ACCEPT
-A RH-Firewall-1-INPUT -p 51 -j ACCEPT
-A RH-Firewall-1-INPUT -p udp --dport 5353 -d 211.1.1.211 -j ACCEPT
-A RH-Firewall-1-INPUT -p udp -m udp --dport 631 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m tcp --dport 631 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 8080 -j ACCEPT
-A RH-Firewall-1-INPUT -j REJECT --reject-with icmp-host-prohibited
COMMIT
$ nano /etc/network/interfaces
iface eth0 inet static
address 192.168.1.2
netmask 255.255.255.0
gateway 192.168.1.1
auto eth0
/etc/init.d/networking restart
If you wish to search for DHCP servers on a network just type:
dhclient [interface]
and it will bring back information on all running DHCP servers on your subnet
caused by: java.lang.RuntimeException: Exception creating identity: domainName
your computer can't find itself
go to:
etc/hosts
make sure the loopback address refers to the name of the box you are running on ie
127.0.0.1 documentationServerBox localhost.localdomain localhost
for other information on linux network configs look at the redhat linux network guide
If you are currently using BT as your ISP and you have the misfortune of using a BT Home Hub 2.0 do be aware that this device has a potential security flaw allowing BT to update/change firmware settings on it without your consent.
This gives BT the potential to track your internet usage from inside your own network, even seeing the network that passes inside of your own LAN.
If you have implicit trust in BT as a highly ethical company that never does anything wrong (infringing GPL, RIPA breaches) then you should carry on using you're Home Hub, if not.. be afraid...