HPE GreenLake Administration
- Community Home
 - >
 - Servers and Operating Systems
 - >
 - Operating Systems
 - >
 - Operating System - Linux
 - >
 - what differences with setup gateway Vs route add d...
 
Operating System - Linux
        1840139
        Members
    
    
        2322
        Online
    
    
        110161
        Solutions
    
Forums
        Categories
Company
Local Language
                
                  
                  back
                
        
                
        
                
        
                
        
        
        
                
        
                
        
        
        
                
        
              
              Forums
Discussions
Forums
- Data Protection and Retention
 - Entry Storage Systems
 - Legacy
 - Midrange and Enterprise Storage
 - Storage Networking
 - HPE Nimble Storage
 
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
                
                  
                  back
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
            
                
            
                
            
                
            
                
            
            
                
            
                
            
            
                
            
                
              
            Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
 - Appliance Servers
 - Alpha Servers
 - BackOffice Products
 - Internet Products
 - HPE 9000 and HPE e3000 Servers
 - Networking
 - Netservers
 - Secure OS Software for Linux
 - Server Management (Insight Manager 7)
 - Windows Server 2003
 - Operating System - Tru64 Unix
 - ProLiant Deployment and Provisioning
 - Linux-Based Community / Regional
 - Microsoft System Center Integration
 
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
        Information
        Community
Resources
Community Language
        Language
        Forums
Blogs
Topic Options
			
				
					
	
			
		
	- Subscribe to RSS Feed
 - Mark Topic as New
 - Mark Topic as Read
 - Float this Topic for Current User
 - Bookmark
 - Subscribe
 - Printer Friendly Page
 
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
06-14-2002 04:50 PM
06-14-2002 04:50 PM
			
				
					
						
							what differences with setup gateway Vs route add default gateway?
						
					
					
				
			
		
	
			
	
	
	
	
	
			
				
					
					
						i can set one gateway and dns by manuel of setup.networking setting.gateway, on the other hand, i can also set gateway by 
route add -net default gateway 192.168.0.1 dev eth0
my problem is , what differences with this two way? why the linux can remember the fore one and i has to reset the behind one, after the network restart???
thanks for your tips,
frederick
					
				
			
			
				
		
		
	
	
	
route add -net default gateway 192.168.0.1 dev eth0
my problem is , what differences with this two way? why the linux can remember the fore one and i has to reset the behind one, after the network restart???
thanks for your tips,
frederick
	frederick
			
			
				
			
			
			
			
			
			
		
		2 REPLIES 2
	
	            
            
		
		
			
            
                - Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
06-14-2002 08:31 PM
06-14-2002 08:31 PM
			
				
					
						
							Re: what differences with setup gateway Vs route add default gateway?
						
					
					
				
			
		
	
			
	
	
	
	
	
			
				
					
					
						Hi,
When you setup a gateway , if modifies the kernel routing table and the configuration
file.
So When you restart the route entry is read from the configuration file and put in to kernel routing entry. Therefore route persists
even after reboot.
But When you use route add command route added
directly to kernel routing table and it does not alter the configuration file.So route is lost if system reboots.
regards,
U.SivaKumar
					
				
			
			
				
		
		
	
	
	
When you setup a gateway , if modifies the kernel routing table and the configuration
file.
So When you restart the route entry is read from the configuration file and put in to kernel routing entry. Therefore route persists
even after reboot.
But When you use route add command route added
directly to kernel routing table and it does not alter the configuration file.So route is lost if system reboots.
regards,
U.SivaKumar
	Innovations are made when conventions are broken
			
			
				
			
			
			
			
			
			
		- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
06-14-2002 08:48 PM
06-14-2002 08:48 PM
			
				
					
						
							Re: what differences with setup gateway Vs route add default gateway?
						
					
					
				
			
		
	
			
	
	
	
	
	
			
				
					
					
						HI,
When you setup gateway the gateway is configured in this file /etc/sysconfig/network
The file is saved with new gateway. So even after reboot the system will get the route read
from the above file.
regards,
U.SivaKumar
		
		
	
	
	
When you setup gateway the gateway is configured in this file /etc/sysconfig/network
The file is saved with new gateway. So even after reboot the system will get the route read
from the above file.
regards,
U.SivaKumar
	Innovations are made when conventions are broken
			
			
				
			
			
			
			
			
			
		The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
		
	
	
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP